[Checkins] SVN: grok/trunk/doc/reference/components.rst Thanks Paul	Wilson for reporting the typos.
    Martijn Faassen 
    faassen at infrae.com
       
    Thu Dec 11 11:35:40 EST 2008
    
    
  
Log message for revision 93913:
  Thanks Paul Wilson for reporting the typos.
  
Changed:
  U   grok/trunk/doc/reference/components.rst
-=-
Modified: grok/trunk/doc/reference/components.rst
===================================================================
--- grok/trunk/doc/reference/components.rst	2008-12-11 16:31:31 UTC (rev 93912)
+++ grok/trunk/doc/reference/components.rst	2008-12-11 16:35:40 UTC (rev 93913)
@@ -524,7 +524,7 @@
 
     class Branding(grok.Annotation):
         grok.implements(IBranding)
-        unqiue = 0
+        unique = 0
    
     # Grok the above code, then create some mammoths
     manfred = Mammoth()
@@ -536,9 +536,13 @@
    
     # except you can store data in them, this data will transparently persist
     # in the database for as long as the object exists
-    livestock1.serial = 101
-    livestock2.serial = 102
+    livestock1.unique = 101
+    livestock2.unique = 102
 
+    # attributes not listed in the interface will also be persisted
+    # on the annotation
+    livestock2.foo = "something"
+
 Utilities
 ~~~~~~~~~
 
    
    
More information about the Checkins
mailing list