[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - testZEO.py:1.23

Barry Warsaw barry@wooz.org
Thu, 4 Apr 2002 17:08:24 -0500


Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv31634

Modified Files:
	testZEO.py 
Log Message:
_dostore(): Extend the argument list to include optional user and
description fields, which are assigned to attributes on the
Transaction object.


=== StandaloneZODB/ZEO/tests/testZEO.py 1.22 => 1.23 ===
     
     def _dostore(self, oid=None, revid=None, data=None, version=None,
-                 already_pickled=0):
+                 already_pickled=0, user=None, description=None):
         """Do a complete storage transaction.
 
         The defaults are:
@@ -88,6 +88,10 @@
             version = ''
         # Begin the transaction
         t = Transaction()
+        if user is not None:
+            t.user = user
+        if description is not None:
+            t.description = description
         self._storage.tpc_begin(t)
         # Store an object
         r1 = self._storage.store(oid, revid, data, version, t)