[Checkins] SVN: Products.SQLAlchemyDA/trunk/da.py docstring p0rn
Andreas Jung
andreas at andreas-jung.com
Thu Jun 7 07:04:20 EDT 2007
Log message for revision 76460:
docstring p0rn
Changed:
U Products.SQLAlchemyDA/trunk/da.py
-=-
Modified: Products.SQLAlchemyDA/trunk/da.py
===================================================================
--- Products.SQLAlchemyDA/trunk/da.py 2007-06-07 10:41:52 UTC (rev 76459)
+++ Products.SQLAlchemyDA/trunk/da.py 2007-06-07 11:04:20 UTC (rev 76460)
@@ -59,11 +59,21 @@
def __init__(self, id, title=''):
self.id = id
self.title = title
+
+
+ def manage_afterAdd(self, item, container):
+ """ Ensure that a new utility id is assigned after creating
+ or copying an instance.
+ """
self._new_utilid()
+ return SimpleItem.manage_afterAdd(self, item, container)
+
def _new_utilid(self):
+ """ Assign a new unique utility ID """
self.util_id = '%s.%s' % (time.time(), random.random())
+
@property
def _wrapper(self):
if self.dsn:
More information about the Checkins
mailing list