no there is not. copy and paste creates a new database record, which obviously then has a new bobobase_modification_time. your application should keep track of modification time itself in a separate property of your item. jens On Friday, July 19, 2002, at 09:30 , Allen wrote:
What about when just using copy and paste? The dates all change to current when using copy and paste. Any way to change that? -Allen
----- Original Message ----- From: "Jens Vagelpohl" <jens@zope.com> To: "Gilles Lenfant" <gilles@objectis.net> Cc: <zope@zope.org> Sent: Friday, July 19, 2002 9:07 AM Subject: Re: [Zope] keeping original dates of objects when importing zexp ?
any "retain existing date" just cannot work if the date is using bobobase_modification_time. that's because bobobase_modification_time has nothing to do with the application itself, it is a ZODB database-level value that cannot be "set" from any application. only the database itself can manipulate it.
jens
On Friday, July 19, 2002, at 08:02 , Gilles Lenfant wrote:
Thanks Casey.
In my case, I transered some ZWiki from an old server to a new one. Zwiki pages display their dates based on their bobobase_modification_time :(( I added to the Zwiki a custom view based on the most recent Zwiki pages. This view is now screwed.
When CMF object keep the dates in the meta data.
Of course a "retain existing object dates" would be fair in the import form (like for the ownership).
Cheers
--Gilles
----- Original Message ----- From: "Casey Duncan" <casey@zope.com> To: "Gilles Lenfant" <gilles@objectis.net>; <zope@zope.org> Sent: Thursday, July 18, 2002 8:15 PM Subject: Re: [Zope] keeping original dates of objects when importing zexp ?
The answer is that you should not rely on bobobase_mod_time as the application modification date of your objects. You have uncovered a good reason why. Your application should instead store and update the mod date on its own, like the CMF does.
[...]
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )