[google-appengine] App Engine Code Challenge - write a tetris playing algorithm

2008-11-30 Thread russ.au
Hi all, Here's my attempt to learn App Engine / python. It's a tetris code challenge, you write a tetris playing algorithm, and the app challenges your algorithm. You can write the algorithm in anything that can do cgi: php, asp.net, jsp, etc. I've provided a sample client that you can easily

[google-appengine] Re: loading a model by key

2008-11-19 Thread russ.au
That works, thanks Alexander! It also works without the db.Key: model = MyModel.get(key) The relevant references - of course it was all there in front of me: http://code.google.com/appengine/docs/datastore/modelclass.html - Note get() is a CLASS method

[google-appengine] loading a model by key

2008-11-18 Thread russ.au
Hi all, Apologies if I'm missing something obvious here.. Can you load a model with the key() in a string? I can read the .key() off my model - it's a long random string. I'm sorting this in the HTML- so I can pass it to an ajax request. Inside the Ajax request, I want to load up the

[google-appengine] Re: loading a model by key

2008-11-18 Thread russ.au
Aw, man... typed that wrong, i am doing: model = MyModel.get(key) So this _should_ work with the string I'm getting from the querystring? On Nov 19, 3:59 pm, David Symonds [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 2:45 PM, russ.au [EMAIL PROTECTED] wrote: Hi all, Apologies if I'm

[google-appengine] CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread russ.au
I'm getting this exception in my app engine app : CapabilityDisabledError: Datastore writes are temporarily disabled. A search of this group suggest this only happens during scheduled maintenance?

[google-appengine] Re: dev_appserver locks up with UrlFetch to URL within same application

2008-11-10 Thread russ.au
does the dev_appserver only process 1 request at a time? On Nov 10, 10:47 pm, Jonk [EMAIL PROTECTED] wrote: On 10 marras, 13:38, russ.au [EMAIL PROTECTED] wrote: Weird requirement I know - when I try UrlFetch another URL within my application the page doing the request never completes

[google-appengine] Re: dev_appserver locks up with UrlFetch to URL within same application

2008-11-10 Thread russ.au
Forgot to mention - I don't have any problem with the same code on the 'live' appspot webserver. On Nov 10, 10:38 pm, russ.au [EMAIL PROTECTED] wrote: Weird requirement I know - when I try UrlFetch another URL within my application the page doing the request never completes.  After

[google-appengine] urlfetch ResponseTooLargeError - what is the limit?

2008-11-06 Thread russ.au
I'm attempting to write an app to 'manipulate' podcast MP3s. I'm getting an exception ResponseTooLargeError trying to grab the podcast. If I turn on allow_truncated - len(result.content) gives 1048576. Sounds like the limit is 1 meg - i don't find this documented anywhere. Is this a hard