[Zope] keeping original dates of objects when importing zexp ?

Jens Vagelpohl jens@zope.com
Fri, 19 Jul 2002 09:07:07 -0400


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 )