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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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]
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
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:
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: ' +
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.
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:
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
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
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 :)
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
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
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
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
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;
28 matches
Mail list logo