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

Chris McDonough chrism at zope.com
Thu Oct 2 16:32:09 EDT 2003


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

Modified Files:
	fixup.py 
Log Message:
More fixups.


=== Products/CMFPackage-zopeorg/Extensions/fixup.py 1.3 => 1.4 ===
 def set_modified_to_created(thing):
     if hasattr(aq_base(thing), 'creation_date'):
         created = thing.creation_date.timeTime()
-        thing.setModificationDate(created)
+        thing.modification_date = DateTime(created)
         path = '/'.join(thing.getPhysicalPath())
         zLOG.LOG('CMFPackage fixup', 100,
                  '%s modification_date set to %s' % (path, created))





More information about the zopeorg-checkins mailing list