[Zodb-checkins] CVS: Zope3/src/zodb/tests - util.py:1.2
Jim Fulton
jim at zope.com
Wed Jan 7 07:12:56 EST 2004
Update of /cvs-repository/Zope3/src/zodb/tests
In directory cvs.zope.org:/tmp/cvs-serv11546/src/zodb/tests
Modified Files:
util.py
Log Message:
Added a basic persistent class that can be used to create example
instances.
=== Zope3/src/zodb/tests/util.py 1.1 => 1.2 ===
--- Zope3/src/zodb/tests/util.py:1.1 Tue Jan 6 14:50:42 2004
+++ Zope3/src/zodb/tests/util.py Wed Jan 7 07:12:55 2004
@@ -17,6 +17,7 @@
"""
import time
+import persistence
from zodb.storage.memory import MemoryFullStorage
from zodb.db import DB as _DB
from transaction import get_transaction
@@ -29,3 +30,11 @@
def pack(db):
db.pack(time.time()+1)
+
+class P(persistence.Persistent):
+
+ def __init__(self, name):
+ self.name = name
+
+ def __repr__(self):
+ return 'P(%s)' % self.name
More information about the Zodb-checkins
mailing list