[google-appengine] Re: How can I know the version I am running in Production?

2008-10-23 Thread Daniel O'Brien (Google)
It's exposed as an environment variable, so something along the lines of the following should work: import os version = os.environ['CURRENT_VERSION_ID'] Daniel On Oct 22, 7:52 pm, Mariano Benitez [EMAIL PROTECTED] wrote: I need to know it inside my app so I can do something like !--

[google-appengine] Re: is there a way to tell the deployer to ignore some directories and/or files?

2008-10-23 Thread Daniel O'Brien (Google)
Yep. PIL is required for the images API within the SDK, but won't work on the live servers. Daniel On Oct 22, 9:54 pm, Mariano Benitez [EMAIL PROTECTED] wrote: ok that worked, now.. I use PIL, should I skip PIL too? Mariano On Oct 23, 1:53 am, Mariano Benitez [EMAIL PROTECTED] wrote:

[google-appengine] Re: Hi anybody have trouble with self.request.remote_addr today?

2008-10-23 Thread poke
i use os.environ['REMOTE_ADDR'] On Oct 23, 2:10 pm, Grays [EMAIL PROTECTED] wrote: HI all:  I found self.request.remote_addr get intranet ip today,but it's work fine yesterday. anybody have the same problem? thanks all --~--~-~--~~~---~--~~ You received

[google-appengine] key().id() upper bound

2008-10-23 Thread jeremy
in the life time of an app, what's a reasonable upper bound on the integer key().id() ? i need to encode the id into a string - i'm trying to figure out how many of the 500bytes to dedicate it. inb4 be more specific than 'in the life time of an app' :P

[google-appengine] Error when accessing logs from dashboard

2008-10-23 Thread Brian Clapper
Attempting to examine the logs for my AppEngine application today, I have consistently received a document containing nothing more than the following: HTTP response was too large: 1738540. The limit is: 1048576. Other than the obvious 1Mb ceiling being hit here, it's a little tough to diagnose

[google-appengine] Re: Beta testing a CMS for AppEngine

2008-10-23 Thread [EMAIL PROTECTED]
I have to agree. The best case is you have it up with an app.yaml with placeholders or somesuch. With utilities I just left the live one in there, and I've seen the demo pop up on a few live sites as people have played with it. On Oct 22, 6:54 pm, Roberto Saccon [EMAIL PROTECTED] wrote: Hey,

[google-appengine] Re: Beta testing a CMS for AppEngine

2008-10-23 Thread Ross M Karchner
Here's an issue I created that could address this kind of need: http://code.google.com/p/googleappengine/issues/detail?id=658 On Wed, Oct 22, 2008 at 6:33 PM, David koblas [EMAIL PROTECTED] wrote: I would as well, but part of the idea is that I would like to make it easily installable by

[google-appengine] Re: Inconsistency in documented semantics of transactions.

2008-10-23 Thread Ross Ridge
Ian MacLarty wrote: In RDBMS speak a READ COMMITTED transaction may read changes committed by another concurrent transaction. If you were using a traditional RDBMS and you tried to increment a counter in a READ COMMITTED transaction by first querying the value of the counter and then

[google-appengine] query..

2008-10-23 Thread saurabh
Hi, i developed an web application in cherrypy. now i want to host it with google app engine. Is it is been supported by app engine. Secondly what configuration i need to change in order to host my cherrypy webapplication,?? Thanks Regards, Saurabh

[google-appengine] Re: cherrypy application hosting

2008-10-23 Thread chenbaiping
Cherrypy is multithread. It seems that GAE does not support multithread. chenbaiping www.mao2.com -邮件原件- 发件人: google-appengine@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 saurabh 发送时间: 2008年10月23日 20:54 收件人: Google App Engine 主题: [google-appengine] cherrypy application hosting Hi,

[google-appengine] Re: index.yaml has def, appspot gives error when running the app - why?

2008-10-23 Thread Marzia Niccolai
Hi, What is the app id for the app experiencing this issue (as always, if you don't want the app id published in the forum, you can reply directly to me with it). Also, what is the status of this index in your Admin Console for this app? Is it shown there? -Marzia On Thu, Oct 23, 2008 at 9:19

[google-appengine] Re: exceptions.SystemError?

2008-10-23 Thread Marzia Niccolai
Hi, This issue is due to a reset of sys.path to a fixed default at the start of each request. While a fix is in progress, you can work around it bby saving a copy of sys.path in a global variable when main() is called for the first time. The code would look like: import sys . . (code that

[google-appengine] How to modify property output?

2008-10-23 Thread Nefarious
Newbie question here... Say I have model like the below: class Blah(db.Model): Example name = db.StringProperty() title = db.StringProperty() address = db.StringProperty() How would I modify the output from the datastore before it gets to the caller? So, I want to modify the

[google-appengine] Re: Error when accessing logs from dashboard

2008-10-23 Thread Marzia Niccolai
Hi Brian, To view in the web interface, you can set the limit of logs records to be displayed by appending the limit argument on the URL, so the following should work:

[google-appengine] Re: Error when accessing logs from dashboard

2008-10-23 Thread Brian Clapper
On 10/23/08 12:54 PM, Marzia Niccolai wrote: Hi Brian, It does seem like the size of your logs is too large for the logs page, which is probably due to the amount of information you are including in them. Can you try and download the logs to your computer? Use the request_logs

[google-appengine] Re: Error when accessing logs from dashboard

2008-10-23 Thread Brian Clapper
On 10/23/08 1:34 PM, Marzia Niccolai wrote: Hi Brian, To view in the web interface, you can set the limit of logs records to be displayed by appending the limit argument on the URL, so the following should work: http://appengine.google.com/logs?app_id=xxxversion_id=1.150limit=10

[google-appengine] What's the maximum amount of time I'd have to wait for an index to build?

2008-10-23 Thread Jillian
I have very few indexes in my application. The first batch of indexes took no time. I just added another one today, and it's taken two hours already. Jillian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google

[google-appengine] Re: Inconsistency in documented semantics of transactions.

2008-10-23 Thread Ian MacLarty
On Oct 24, 2:09 am, Ross Ridge [EMAIL PROTECTED] wrote: Ian MacLarty wrote: In RDBMS speak a READ COMMITTED transaction may read changes committed by another concurrent transaction. If you were using a traditional RDBMS and you tried to increment a counter in a READ COMMITTED

[google-appengine] Re: index.yaml has def, appspot gives error when running the app - why?

2008-10-23 Thread pr3d4t0r
On Oct 23, 9:41 am, Marzia Niccolai [EMAIL PROTECTED] wrote: What is the app id for the app experiencing this issue (as always, if you don't want the app id published in the forum, you can reply directly to me with it). App ID and link to this posting coming your way via email. Also, what

[google-appengine] Re: Any efficient way to implement a DELETE statement?

2008-10-23 Thread Jeff S
Hi yejun, I didn't see any immediate problems with the first approach which you listed, I agree it will be more efficient than the second approach. Depending on the shape of your data you might need to adjust the number of items which you fetch and delete in a single request (100 could be too

[google-appengine] Re: key().id() upper bound

2008-10-23 Thread jeremy
i'm formulating a single composite property which can be finalized at entity creation time and which will hopefully allow me to retrieve hierarchical data in a desired order. i don't think i can do this with multiple properties as they would each require a inequality operation. also, this

[google-appengine] Re: PLEASE HELP - CANNOT VERIFY CELL

2008-10-23 Thread Jeff S
Hi johny, Take a look at this FAQ http://code.google.com/appengine/kb/sms.html#error If you fill out the SMS issues form we can manually approve you. Cheers, Jeff On Oct 23, 5:11 am, realgt [EMAIL PROTECTED] wrote: are you including the country code? (1 for united states ) it should be

[google-appengine] Re: Inconsistency in documented semantics of transactions.

2008-10-23 Thread Ross Ridge
Ross Ridge [EMAIL PROTECTED] wrote: There's no SELECT in the example in the documentation as queries aren't allowed inside of a transaction. Ian MacLarty wrote: There is a call to db.get. This would be analogous to a SELECT in a relational database. I'd say the it's SELECT in GQL that's

[google-appengine] Profiling code, datastore stats

2008-10-23 Thread Mike Wesner
The docs mention how to profile the code, which shows function calls and things. How do you profile the datastore calls? (number of queries, read/ write, time, etc) Does anyone have some interesting ways to profile their apps? The application I have been designing seems fairly clean so far and

[google-appengine] Re: Sample code of i18n on GAE+Django

2008-10-23 Thread Alexander Orlov
On Oct 20, 10:00 am, A.TNG [EMAIL PROTECTED] wrote: Do you have any idea? I meet some similar problems in my project too. I have investigated this issue and put a lot of time (too much!) tinkering to get it working but without success (found a really dirty hack to get it working with

[google-appengine] Google App Engine Roadmap - Now Published

2008-10-23 Thread Marzia Niccolai
Hi, Many of you have expressed interest in learning about what's coming next for Google App Engine, and although we've often talked about features we plan on supporting, we've decided to publish a roadmaphttp://code.google.com/appengine/docs/roadmap.htmlalong with our documentation. The roadmap

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-23 Thread cz
This is fantastic, thanks Marzia! There also seems to be a fair amount of clamor for beefing up the Image API, any chance that might be in the pipeline? Also, I would like to suggest that the documentation be fattened up, especially concerning the inner workings of datastore/BigTable and

[google-appengine] Re: Any efficient way to implement a DELETE statement?

2008-10-23 Thread yejun
The first approach normally should work. But there is also a very very small possibility that some of fetched entries are updated during this call, which will cause the updated values being deleted. The second approach doesn't actually work on GAE, because query isn't supported inside a

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-23 Thread Greg
Thanks for the feedback - good to know you are listening to our concerns. The big one for me is billing, which presumably will remove all the quota issues. I have an application just about ready to go live, and I don't anticipate huge resource use, but I'm hesitant about launching until I can be

[google-appengine] Tips on Optimizing Writes?

2008-10-23 Thread [EMAIL PROTECTED]
Hi, My application get a lot of high-CPU usage warnings on the production server. I have spent the past few weeks profiling and optimizing my production code as suggested. From profiler data, I know that 99% of processor time is spent in Model.put or db.put. As a result I have been aggressively

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-23 Thread Bill
* Support for a new runtime language Would you be able to say how different languages will be partitioned? Could you access a single datastore with more than one language or have different languages running on the same VM? --~--~-~--~~~---~--~~ You received this

[google-appengine] Complex URLs and Folders

2008-10-23 Thread Chris
How would you map the URL /admin/users to the script admin/ editusers.py? I tried adding something like this to my app.yaml, but all I get is a blank document - url: /admin/users script: admin/editusers.py login: admin --~--~-~--~~~---~--~~ You received this

[google-appengine] Re: Irregular 500 Internal Server Errors

2008-10-23 Thread GMan
Hi, I'm not sure about the exact time, but it happens 2-3 times per day. Perhaps what I can do is create a data entity to simply log the last time the operation completed. Then, once it fails, I can lookup the last completion time and send you a precise date/time. It was concerning to me that

[google-appengine] urlfetch error: CONTENT_TYPE exception

2008-10-23 Thread chenbaiping
When I fetch some resource like http://news.aol.com/cp.adp?mod1=233051|cp_crosspromodebug=0, urlfetch will throw 'CONTENT_TYPE' exception . Who knows why? My code is something like this: Try beginTime=time.time() Urlfetch.fetch(url,...) except Exception, e:

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-23 Thread Jeffrey Rosen
Thanks for clarifying this! I am especially relieved to see the datastore import/export and the billing option announced. I am also relieved to see recent advances like the HTTPS release which now lets us add things like Google Checkout integration. As someone who runs their entire business

[google-appengine] Re: Some doubts about group by

2008-10-23 Thread David Symonds
On Thu, Oct 23, 2008 at 6:15 PM, Paulo Fabiano Langer [EMAIL PROTECTED] wrote: I've created a class called ListLanguages and I use Languages.all() My doubt is, how could get the languages list and the number of words of each language? Normaly with SQL we could use group by id_language but I

[google-appengine] Re: Per Session Datastore

2008-10-23 Thread adrian
I've had the same problem and also got no useful advice on my similar post. So you're not alone. I'm surprised this is not a more common problem or perhaps everyone knows the solution except us. I tried memcache but you need a separate key for each user to avoid that concurrency overlap, and

[google-appengine] Re: Per Session Datastore

2008-10-23 Thread yejun
I wrote a patch to enable beaker session work on webapp. You can get code here. http://appengine-cookbook.appspot.com/recipe/add-session-support-to-webapp/ On Sep 25, 1:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: First post related to my first ever app, so watch out. I've had a lot of

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-23 Thread Arun Shanker Prasad
Great to finally get official about the Roadmap On Oct 24, 8:01 am, Jeffrey Rosen [EMAIL PROTECTED] wrote: Thanks for clarifying this!  I am especially relieved to see the datastore import/export and the billing option announced.  I am also relieved to see recent advances like the HTTPS

[google-appengine] Re: index.yaml has def, appspot gives error when running the app - why?

2008-10-23 Thread pr3d4t0r
On Oct 23, 9:41 am, Marzia Niccolai [EMAIL PROTECTED] wrote: What is the app id for the app experiencing this issue (as always, if you don't want the app id published in the forum, you can reply directly to me with it). Marzia and I discussed some of this in private since I gave him the app