[ZCM] [ZC] 765/ 1 Request "Quick bobobase_modification_time fix for ZCatalog"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Sun, 12 Jan 2003 22:22:58 -0500


Issue #765 Update (Request) "Quick bobobase_modification_time fix for ZCatalog"
 Status Pending, Zope/bug+solution low
To followup, visit:
  http://collector.zope.org/Zope/765

==============================================================
= Request - Entry #1 by Zen on Jan 12, 2003 10:22 pm

If a ZCatalog uses bobobase_modification_time as an index or metadata, it will reflect the *previous* last modified time if an CatalogAware object is modified and reindex_object() called on it.

Simple fix is to add the following line to reindex_object
in CatalogAware and CatalogPathAware:
    self.bobobase_modification_time = DateTime()

And of course an 'from DateTime import DateTime' at the top.
==============================================================