[Zope] How to set an object's last modification time

Paul Winkler pw_lists at slinkp.com
Tue Aug 9 15:25:56 EDT 2005


> On 9 Aug 2005, at 04:14, Gabriel Genellina wrote:
>>
>> Maybe I should not be playing with _p_serial,

Correct, you should not be.  All _p_ attributes are reserved
for use by the ZODB and applications should never mess with them.

>>  but how can I set the
>> object's last modification time? I want it to be in sync with an
>> external representation (stored in CVS).
>
> Set your very own attribute on the object that holds the modification
> time, and modify it at will.

What Jens said.

-PW




More information about the Zope mailing list