[Zope] index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread jens . walte
Hello,

does anybody knows a different possibility to beware the 
bobobase_modification_time of the given object from the following code?


def my_index_object(object, catalogs=['myPointerCatalog', 'mySearchCatalog']):

for cat in catalogs:
object.default_catalog = cat
object.index_object()

# set back to default
object.default_catalog = 'Catalog'


regards
jens


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread Paul Winkler
On Thu, Dec 01, 2005 at 04:44:41PM +, [EMAIL PROTECTED] wrote:
 Hello,
 
 does anybody knows a different possibility to beware the 
 bobobase_modification_time of the given object from the following code?
 
 
 def my_index_object(object, catalogs=['myPointerCatalog', 'mySearchCatalog']):
 
 for cat in catalogs:
 object.default_catalog = cat
 object.index_object()
 
 # set back to default
 object.default_catalog = 'Catalog'
 

I don't know what beware means in this context.
If you are asking whether it is possible to avoid changing
bobobase_modification_time, the answer is no.
ZODB updates bobobase_modification_time on any change to a persistent
object, and there is nothing you can do to avoid this.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )