[Zope3-dev] setting modified on create

Fred L. Drake, Jr. fred at zope.com
Tue Oct 21 22:29:16 EDT 2003


Garrett Smith writes:
 > I believe it's fairly common practice to set a file's 'modified' 
 > attribute when the item is created -- i.e. 'created' and 'modified' are 
 > initially set and indentical.

This is usually done somewhere deep in the filesystem, but yes.  It is
not done by the application (neither value is normally set by the
app).

 > Does anyone see a problem doing this in Zope3 with objects on create?
 > 
 > One side effect, though minor, is that we can remove the 'created' 
 > column in the folder/contents view.

This is not clear.  Most directory listings for normal filesystems
don't include the creation time, but it remains available.  Do you not
consider it reasonable to show the creation time?  One thing that can
be interesting is determining whether an object has been maintained
since the initial creation; the creation date allows that.  (So would
some mark, possibly an icon, indicating that the object has been
modified since the initial creation.)

 > More importantly, modified can be 
 > meaningfully compared across all objects.

This is a nice property.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation



More information about the Zope3-dev mailing list