[google-appengine] Re: list of referenceProperty?

2009-02-19 Thread Pratik Rokade
ooh, nice workaround! On Tue, Feb 17, 2009 at 11:12 PM, Marzia Niccolai ma...@google.com wrote: Hi, You can have a list of key objects, and you can just use db.get(Key) to retrieve any entry in the list. -Marzia On Sun, Feb 15, 2009 at 9:27 PM, Pratik C. Rokade

[google-appengine] Re: is datastore timestamped for concurrency at page level?

2009-02-19 Thread Nick Johnson
It's really hard to say based on your description. Are you using transactions? Can you show us your code? -Nick Johnson On Feb 18, 3:41 pm, Nikola ntos...@gmail.com wrote: I am trying to go through all entities of a kind, using the __key__ property. I take 10 at a time, and run threads in

[google-appengine] Re: How to use ReferenceProperty?

2009-02-19 Thread Yossi
Thanks Nick for the answer however I'm not sure I fully understood it... what do you mean by 'key_names'? which key should I put where and how should I query it? On Feb 18, 8:23 pm, Nick Winter livel...@gmail.com wrote: Instead of using ReferenceProperties, I'd suggest using key_names (the

[google-appengine] Re: AEP 1.0beta6 testers needed!

2009-02-19 Thread Waldemar Kornewald
Hi John, thanks for the feedback! On Feb 18, 9:01 pm, johnP j...@thinkwave.com wrote: 2.  I like the warning you provide about lazy-loading apps when needed.  I am using ReportLab, which is registered as an app in settings.py.  The warning indicated that it's doing a ton of imports up-front,

[google-appengine] Re: Help: The phone number has been sent too many messages or has already been used to confirm an account.

2009-02-19 Thread Guy Davis
Bouncing this post to keep in view. Hopefully a Googler (Marzia?) will notice and help me resolve this registration snafu. Is my only other option to use a friend's cellphone? That seems to go against the purpose of verifying my identity. However, if I get no help clearing the disallowed

[google-appengine] Re: is datastore timestamped for concurrency at page level?

2009-02-19 Thread Nikola
Each entity is in an entity group by itself. I'm not using transactions and It would be too hard to isolate the code, so I'm not providing an example. I sidestepped the issue by doing only the network operations in parallel threads, then use remote_api sequentially. The problem could have been

[google-appengine] Re: Help: The phone number has been sent too many messages or has already been used to confirm an account.

2009-02-19 Thread Geoffrey Spear
http://appengine.google.com/waitlist/sms_issues On Feb 19, 10:18 am, Guy Davis da...@guydavis.ca wrote: Bouncing this post to keep in view.  Hopefully a Googler (Marzia?) will notice and help me resolve this registration snafu.  Is my only other option to use a friend's cellphone?  That seems

[google-appengine] MemCache/datastore failing

2009-02-19 Thread DarkCoiote
Hi, somehow my app. can't use memcache anymore (it was working fine a week ago). For instance, I clear the cache (memcache.flush_all()), use the app (almost every operation uses caching) and then call the cache stats page (stats = memcache.get_stats()) but the stats variable gets consistently

[google-appengine] Full page memcache caching and HTTP status in logs

2009-02-19 Thread Steffen 'stefreak' Neubauer
Hello, it's not a big deal because it's only in the logs but - maybe it's only a small problem. I'm caching my whole rendered site as it comes out of the template engine plus all the headers in memcache, to serve with minimum latency (A cached request needs normally 7ms-cpu at the moment). I'm

[google-appengine] Lengthy syntax on model's required property

2009-02-19 Thread ub121
I prefer short syntax on required properties, for example: name = db.StringProperty('Name')* instead of name = db.StringProperty('Name', required=True). Besd regards, ub121 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[google-appengine] Re: Full page memcache caching and HTTP status in logs

2009-02-19 Thread Steffen 'stefreak' Neubauer
On Thu, 19 Feb 2009 16:58:59 +0100 Steffen 'stefreak' Neubauer stefr...@stefreak.de wrote: The problem is, that if i cache a 404 Error page on the client side everything is perfect Hmm no, it's not perfect :) The client gets a 200 if it's cached and a 404 if it's not cached. How do i send a 404

[google-appengine] real-time impression counting library

2009-02-19 Thread Adam Sah
Hi all, I've written a little library for providing high-performance counter services suitable for use on every hit: source: http://code.google.com/p/fastpageviews/ demo: http://fastpageviews.appspot.com/ As the docs explain, it uses memcache + DB, but unlike precise counters, e.g. sharded

[google-appengine] Problem with javascript on the appengine.

2009-02-19 Thread dr hil
Hi all, My application use a lot of javascript, that is loaded in the main static html file. all the javascript files are declared in the app.yaml file. The javascript is being loaded and work fine in the developing server, but when I deploy the application of the google appengine server, it

[google-appengine] Get the root entity for a given Model

2009-02-19 Thread Rein Petersen
Hey, I find myself wanting to get at the very root entity for a given Model that may be part of a longer entity chain. Wondering what others think about suggesting a feature request: add instance method to db.Model root() Returns a model instance for the root (top parent) entity within the

[google-appengine] Re: How to use ReferenceProperty?

2009-02-19 Thread Nick Winter
When creating an AppUser, pass in key_name: user = AppUser(name=nwinter, key_name=nwinter) Better to remove potential for missing the key_name by putting it in the constructor: class AppUser(db.Model): name = db.StringProperty() ... def __init__(self, *args, **kargs): kargs[key_name]

[google-appengine] Re: Problem with javascript on the appengine.

2009-02-19 Thread tttttooooodddd ddddddvnek
try writing a html with all the javascript at top of the file.py then the handlers --- On Thu, 2/19/09, dr hil drorhil...@gmail.com wrote: From: dr hil drorhil...@gmail.com Subject: [google-appengine] Problem with javascript on the appengine. To: Google App Engine

[google-appengine] Re: Google Accounts

2009-02-19 Thread tttttooooodddd ddddddvnek
wouldnt it be nice if clients could pay with google checkout then use their id to log in with a payment sticky mess age attached saying i have paid to use the xyzdomain services to correctly log in and authenticate ? --- On Wed, 2/18/09, Geoffrey Spear geoffsp...@gmail.com wrote: From:

[google-appengine] Re: Full page memcache caching and HTTP status in logs

2009-02-19 Thread ArtemGr
Hmm no, it's not perfect :) The client gets a 200 if it's cached and a 404 if it's not cached. How do i send a 404 to the client without touching the webapp framework? Could not find anything. Thank you. http://www.apps.ietf.org/rfc/rfc3875.html#sec-6.3.3 print ('Status: ' +

[google-appengine] Re: Call class from another class

2009-02-19 Thread quake head
and i want to call the New class from MainHandler and support to New class the nick name, and do something with it. I don't think you can call the New class. The webapp.RequestHandler subclasses are run somewhere in webapp.WSGIApplication(). What do you want to do in the first place? (i.e.

[google-appengine] Re: Full page memcache caching and HTTP status in logs

2009-02-19 Thread ArtemGr
Hmm no, it's not perfect :) The client gets a 200 if it's cached and a 404 if it's not cached. How do i send a 404 to the client without touching the webapp framework? Could not find anything. You need to use the standard CGI Status header. print ('Status: 404') print ('Content-Type:

[google-appengine] Re: real-time impression counting library

2009-02-19 Thread quake head
This looks cool. I'm still getting familiar with appengine (started looking at it two days ago.) This small app shows how to use memcache and datastore. I just read the whole code. In IncrPageCount(), if memcache.get(memcache_id) == None: # initializes memcache if missing return

[google-appengine] Re: MemCache/datastore failing

2009-02-19 Thread Marzia Niccolai
Hi, It's difficult to see with only the stack traces, please post the code causing this as well. Also, the datastore deadline's remain the same, the runtime request limit is now 30 second, not the datastore. I would say that the second stack trace seems like you may be trying to fetch 1000

[google-appengine] Re: Full page memcache caching and HTTP status in logs

2009-02-19 Thread Steffen 'stefreak' Neubauer
On Thu, 19 Feb 2009 15:21:47 -0800 (PST) ArtemGr artem...@gmail.com wrote: You need to use the standard CGI Status header. print ('Status: 404') print ('Content-Type: text/html') See http://www.apps.ietf.org/rfc/rfc3875.html#sec-6.3.3 Yes thank you. Found it out for myself already :)

[google-appengine] Re: Get the root entity for a given Model

2009-02-19 Thread Andy Freeman
I find that it's best to write in terms of keys because it's easy to turn keys into models and fetching models when one could use a key is a bad idea because fetching entities is so expensive. a root_key function that takes either a model instance or a key seems like a better idea. Also, root

[google-appengine] How big can memcache entries be?

2009-02-19 Thread Andy Freeman
Memcache appears to use pickle, so it saves the object, everything that the object points to, and so on. This means that multiple db.Model instances may be stored by a single memcache write. What is the maximum size of a memcache entry? IIRC, query objects don't like to be pickled and db.Key

[google-appengine] Re: How big can memcache entries be?

2009-02-19 Thread Jon McAlister
The largest a memcache item may be is 1MB. On Thu, Feb 19, 2009 at 6:10 PM, Andy Freeman ana...@earthlink.net wrote: Memcache appears to use pickle, so it saves the object, everything that the object points to, and so on. This means that multiple db.Model instances may be stored by a single

[google-appengine] Re: Pylons framework?

2009-02-19 Thread Mike Orr
On Thu, Feb 19, 2009 at 9:33 PM, boson dan.kam...@gmail.com wrote: I've seen a number of threads going back concerning Pylons [1] support and problems in App Engine. Also there is a appengine-monkey patch [2] that attempts to integrate Pylons (but looks kinda scary). What is the latest

[google-appengine] Re: development staging request

2009-02-19 Thread Brett Slatkin
Hi Alexander, On Wed, Feb 18, 2009 at 9:42 PM, Alexander Vasiljev a.a.vasil...@gmail.com wrote: Please read the following GAE feature request: http://code.google.com/p/googleappengine/issues/detail?id=1078 Share your thoughts and consider to support (star) it. I think this idea makes sense;