[Zope-CVS] SVN: zversioning/trunk/src/versioning/ added test if checkin/checkout return the expected object, added comment regarding the selectors

Grégoire Weber zope.org at incept.ch
Thu Oct 14 07:28:37 EDT 2004


Log message for revision 28161:
  added test if checkin/checkout return the expected object, added comment regarding the selectors

Changed:
  U   zversioning/trunk/src/versioning/README.txt
  U   zversioning/trunk/src/versioning/interfaces.py

-=-
Modified: zversioning/trunk/src/versioning/README.txt
===================================================================
--- zversioning/trunk/src/versioning/README.txt	2004-10-14 11:22:30 UTC (rev 28160)
+++ zversioning/trunk/src/versioning/README.txt	2004-10-14 11:28:35 UTC (rev 28161)
@@ -239,8 +239,10 @@
   >>> len(repo.listVersions(sample))
   1
   >>> repo.checkout(sample)
-  >>> repo.text = 'text version 2 of sample'
+  >>> sample.text = 'text version 2 of sample'
   >>> repo.checkin(sample)
+  >>> sample.text
+  'text version 2 of sample'
   
   >>> len(repo.listVersions(sample))
   2

Modified: zversioning/trunk/src/versioning/interfaces.py
===================================================================
--- zversioning/trunk/src/versioning/interfaces.py	2004-10-14 11:22:30 UTC (rev 28160)
+++ zversioning/trunk/src/versioning/interfaces.py	2004-10-14 11:28:35 UTC (rev 28161)
@@ -239,7 +239,8 @@
 
     principal = Attribute("The read only actor of the store action.")
     
-    label = Attribute("Short read only string encoding version information.")
+    label = Attribute("Short read only string encoding version information. 
+                      "Use this as selector to load a particular version.")
     
     name = Attribute("User readable read only string encoding version "
                      "information.")



More information about the Zope-CVS mailing list