[Zope] Re: how to modify documents creation date
Tres Seaver
tseaver at palladion.com
Sun Feb 5 09:15:58 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Bengtsson wrote:
> Zope objects don't have a creation date, but they have a modification
> date which is called bobobase_modification_time which is a callable
> function. This can't be modified as far as I know other than setting
> this date to todays date and time. Don't rely on this date for
> anything.
>
> You're better off setting your own date on every object. How you do
> this depends but if you use Plone it shouldn't be hard if you use
> archetypes.
Stock CMF content stores the creation data in a separate attribute,
'creation_data'. That attribute has mo "mutator" method, and therefore
cannot be assigned by untrusted code. You should be able to set the
value from an ExternalMethod, however.
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD5gie+gerLs4ltQ4RArsVAJ4iP3IKk/31sT7dtHV+uWI0KjY6ogCfRmv8
TaGFYBvUp1sMReh7/oEE9Dc=
=bsaj
-----END PGP SIGNATURE-----
More information about the Zope
mailing list