Commit f8e578b8 authored by Barry Warsaw's avatar Barry Warsaw

_dostore(): Extend the argument list to include optional user and

description fields, which are assigned to attributes on the
Transaction object.
parent f7928616
......@@ -65,7 +65,7 @@ class ZEOTestBase(StorageTestBase.StorageTestBase):
"""
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 @@ class ZEOTestBase(StorageTestBase.StorageTestBase):
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment