[zopeorg-checkins] CVS: Products/CMFPackage-zopeorg/Extensions - fixup.py:1.2

Chris McDonough chrism at zope.com
Thu Oct 2 16:08:47 EDT 2003


Update of /cvs-zopeorg/Products/CMFPackage-zopeorg/Extensions
In directory cvs.zope.org:/tmp/cvs-serv4935/Extensions

Modified Files:
	fixup.py 
Log Message:
Fixup the fixup. ;-)


=== Products/CMFPackage-zopeorg/Extensions/fixup.py 1.1.1.1 => 1.2 ===
             date_init(file)
 
 def date_init(thing):
+    modified = thing.bobobase_modification_time().timeTime()
     if not hasattr(aq_base(thing), 'creation_date'):
-        thing.creation_date = DateTime(
-            thing.bobobase_modification_time().timeTime()
-            )
+        thing.creation_date = DateTime(modified)
     if not hasattr(aq_base(thing), 'modification_date'):
-        thing.modification_date = DateTime(
-            thing.bobobase_modification_time().timeTime()
-            )
+        thing.modification_date = DateTime(modified)
     
+def set_modified_to_created(thing):
+    if hasattr(aq_base(thing), 'creation_date'):
+        thing.setModificationDate(thing.creation_date.timeTime())
+        





More information about the zopeorg-checkins mailing list