this code:
class AnyYourDBModelClass(db.Model):
some_uid = db.IntProperty() #=key
handmade_key = db.Key.from_path('AnyYourDBModelClass', 1)
numid_start, numid_end = db.allocate_ids(handmade_key, 1);
allocate_ids must return unique values forever
but this is not true for local dev_appserver.py,
values repeated after each restart of dev_appserver.py (db is not cleaned)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/GPUZZOMCuycJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.