[google-appengine] Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
Suppose I run the remote API shell as follows: $ python some_path/remote_api_shell.py -s 1-5-3.example.appspot.com How do I find out the version number of the app from within the shell? (in this case: 1-5-3) -- You received this message because you are subscribed to the Google Groups "Google

[google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
I reposted this question now on: google-appengine-pyt...@googlegroups.com Seems to be more appropriate. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscri

Re: [google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
On Tue, Sep 6, 2011 at 1:52 PM, JH wrote: > import os > os.environ['CURRENT_VERSION_ID'] The key "CURRENT_VERSION_ID" is *not* available in the remote API shell: s~example> import os s~example> os.environ['CURRENT_VERSION_ID'] Traceback (most recent call last): File "", line 1, in File "C:\

Re: [google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
2011/9/6 Ronoaldo José de Lana Pereira : > version = urllib2.urlopen("http://example.appspot.com/version";).read() If I had the URL, then I would already be all set. It includes the version! Remember: $ python some_path/remote_api_shell.py -s 1-5-3.example.appspot.com The question is: How do I

Re: [google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
On Tue, Sep 6, 2011 at 5:05 PM, Ernesto Oltra wrote: > from google.appengine.api import app_identity > app_identity.get_application_id() Reports the app ID, not the version. For "1-5-3.example.appspot.com" that's: example -- You received this message because you are subscribed to the Google

Re: [google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
On Tue, Sep 6, 2011 at 3:50 PM, Ernesto Oltra wrote: > You could try to iterate through the sys.argv list, and find the > argument next to the "-s" one. Thanks for the suggestion! Had that already in mind as a fall-back solution. However, was hoping for something simpler and more reliable. -- Y

[google-appengine] Re: Find out version of app in remote API shell?

2011-09-06 Thread Felix E. Klee
On Tue, Sep 6, 2011 at 12:40 PM, Felix E. Klee wrote: > How do I find out the version number of the app from within the shell? Finally, I found a solution: parser = optparse.OptionParser() parser.add_option('-s', '--server', dest='server') (o

[google-appengine] Email when quota is reached?

2012-02-25 Thread Felix E. Klee
Any idea how to set up App Engine so that I get an email when quota is reached and users cannot access an app anymore? That would allow me to set up billing only when required. Currently, I have various small projects on App Engine of varying popularity, and I am not interested in paying up to 90

Re: [google-appengine] Re: Email when quota is reached?

2012-02-27 Thread Felix E. Klee
On Mon, Feb 27, 2012 at 12:25 AM, sb wrote: > Writing a small app shouldn't be too hard. How? Of course one could write an app that repeatedly checks if app engine replies with 200 OK for a certain page. But this wouldn't be sufficient. There may be quotas that are hit only later, e.g. during a

[google-appengine] No reply from Google support concerning pricing

2012-03-19 Thread Felix E. Klee
On 2012-02-25 and 03-09 CET, I sent emails to: appengine_updated_pric...@google.com So far no reply. Any suggestion whom else to contact with specific questions concerning pricing? Cases such as this make me wonder if Google is perhaps not taking App Engine serious anymore. Wonder when they wi

[google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
Still waiting for a reply. It's now over a month that I sent my original inquiry. Anyone from Google willing to have a look at the issue? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 5:10 PM, Stefano Ciccarelli wrote: > That email address is on the website too. Exactly. Furthermore my question is a very specific one concerning billing, and it is *not* covered on the website. Well, if they don't want the money... I wonder why Google doesn't seem to car

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 5:37 PM, Jeff Schnitzer wrote: > Presumably this is now something you can fix (for GAE, at least) with > a $500/mo Premier account. Why would I want to give 500 USD/month to a company that doesn't deliver what it promises? In fact I have paid for another "Google Premier"

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 5:48 PM, Gregory D'alesandre wrote: > It is part of the reason we can offer so many free services. Those free services... Just look at my toy projects on App Engine. In the past they cost only when there was a lot of traffic. Now they cost ca. 9 USD/month. Each one! At lea

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 6:55 PM, alex wrote: > Let's say you move one of your apps to Rackspace. A Rackspace instance is not interesting to me. I would use another service where I'm primarily billed per resources and where I don't have to think about maintenance. Preferably it's a service with an

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 6:42 PM, Gregory D'alesandre wrote: > I've responded to your question through that email address. Thank you! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@goo

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 6:55 PM, alex wrote: > It's 500k apps x 9 USD, about 5M USD Google would give up each month > just That calculation is flawed. There are many applications using resources priced *above* that *minimum charge*. I think Google risks losing something more important than a cou

Re: [google-appengine] Re: No reply from Google support concerning pricing

2012-03-28 Thread Felix E. Klee
On Wed, Mar 28, 2012 at 8:15 PM, alex wrote: > http://upon2020.com/2011/04/the-ever-growing-list-of-paas-companies-and-paas-projects/ Thanks for the pointer! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send emai

[google-appengine] Urgent: Cannot pay!

2012-05-23 Thread Felix E. Klee
Tomorrow, there will be an important presentation of an application that I am maintaining on App Engine. So, I want to enable billing for extra resources. But it doesn't work. For hours now, I get the following message: Billing Status: Leaving Grace Period Your account has been locked while we

[google-appengine] Re: Urgent: Cannot pay!

2012-05-23 Thread Felix E. Klee
Now it's getting really weird: I logged out and then back in. Now I could make the payment, using my credit card. And then I got two emails: 1. Order receipt from Google Services ($...) 2. Your order from Google Services has been cancelled Inside the email number two: Google Services has can

[google-appengine] Re: Urgent: Cannot pay!

2012-05-23 Thread Felix E. Klee
Now for a related app I get: Billing Administrator: None Since the last billing adminstrator had a payment fail, there isn't a billing administrator. I don't even know whom to contact. While there is an email address listed, , it is neither appropriate nor is it properly maintained (my expe

Re: [google-appengine] Re: Urgent: Cannot pay!

2012-05-23 Thread Felix E. Klee
On Thu, May 24, 2012 at 12:28 AM, Iein Valdez wrote: > http://support.google.com/code/bin/request.py?hl=en&contact_type=cloud_platform_billing&rd=1. Thanks for your suggestion. I already submitted the form. Excerpt from the reply: You had a charge that failed on 3/13/12. We lock the Billing Se

[google-appengine] Launcher: Console Output in File?

2010-04-16 Thread Felix E. Klee
App Engine Launcher / WinXP32: Is what is displayed in the Log Console also available in a file? The Log Console has various disadvantages: 1. Every time there is a new message, it jumps to the bottom of the log output. That makes it hard to investigate something while the app is running. 2. It

[google-appengine] Transaction not Atomic

2010-04-23 Thread Felix E. Klee
I may sound like an idiot for writing this, and I hope I am, but: Occasionally, I see an inconsistency in the data store which I attribute to a certain transaction being non-atomic. Happens only in the live application AFAICS. And it's hard to reproduce. In the datastore, I have a parent-child re

[google-appengine] Re: Transaction not Atomic

2010-04-23 Thread Felix E. Klee
On Apr 23, 4:13 pm, Andi Albrecht wrote: > Are you sure that you're not working on a parent model, that's somehow > cached and therefore out-dated when you start one of those > "non-atomic" transactions? That's the code that's used to increase the parent version: self.data_version = str(int(se

[google-appengine] Re: Transaction not Atomic

2010-04-23 Thread Felix E. Klee
> Do you fetch the self.data_version entity inside the transaction or > outside of it? Inside, of course. The code I posted is run as part of the transaction. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send emai

[google-appengine] Re: Transaction not Atomic

2010-04-23 Thread Felix E. Klee
I found something interesting: 1. The transaction is indeed atomic, as expected. So it does add the child and increase the parent version number. I saw this in the logs: I had added debug output that shows the version number immediately after the transaction finished. 2. However, at some point so

[google-appengine] Re: Transaction not Atomic

2010-04-23 Thread Felix E. Klee
On Apr 23, 11:51 pm, "Felix E. Klee" wrote: > since any conflicting > transaction can only be one that reads from the data store. Sorry, that's wrong. There could be a conflicting transaction that writes to the data store. Still, I have no clue why the parent version n

[google-appengine] Re: Transaction not Atomic

2010-04-23 Thread Felix E. Klee
Solved! Looks like I found the error: That possibly conflicting code does *not* run in a transaction, and it should. I'm glad that it's indeed me who is the idiot. ;-) -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group,

[google-appengine] Re: Transaction not Atomic

2010-04-24 Thread Felix E. Klee
On Apr 24, 12:12 am, Baz wrote: > What was the conflict? As I said before, there is code that does not run in a transaction, but that should. Here is what I assume causes the problem. There are two functions, f() and g(). f() modifies the data store in a consistent way, using a transaction. g()