[Checkins] SVN: grokapps/gbeguestbook/REVIEW.txt add persistency code samples
Michael Haubenwallner
michael at d2m.at
Fri Aug 15 08:51:12 EDT 2008
Log message for revision 89879:
add persistency code samples
Changed:
U grokapps/gbeguestbook/REVIEW.txt
-=-
Modified: grokapps/gbeguestbook/REVIEW.txt
===================================================================
--- grokapps/gbeguestbook/REVIEW.txt 2008-08-15 12:40:59 UTC (rev 89878)
+++ grokapps/gbeguestbook/REVIEW.txt 2008-08-15 12:51:12 UTC (rev 89879)
@@ -109,13 +109,18 @@
Grok content objects are instantiated, modified and finally inserted into
a container (which here is the application object itself). A local-unique name
must be provided on insertion. Existing objects must be deleted and reinserted.
-Properties are not validated by default.
+Properties are not validated by default::
+ id=str(uuid.uuid4())
+ self.context[id]=greeting
+
GAE content objects are instantiated, modified and finally inserted into
the datastore. A unique key is automatically created on insertion. Existing
objects (entities) are updated on insert. Properties are automatically
-validated on insertion.
+validated on insertion::
+ greeting.put()
+
Searching
---------
More information about the Checkins
mailing list