[Zope] Simple ZODB Search and Edit

Eric Bréhault ebrehault at gmail.com
Tue Apr 10 08:22:05 EDT 2007


ZCatalog is already included in Zope (you will find it in
zope/lib/python/Products/ZCatalog )

You will have to declare the objects' attributes as catalog indexes, and
make sure you index or re-index any object after creation or modification.

Regarding the rest, I am not sure to understand what you want to do exactly,
but if it is a kind of search/replace thing, you will be better to make a
small script to do that than to do it manually in ZMI.


On 4/10/07, Peppe Top <peppetop at gmail.com> wrote:
> Hi all,
> I'm new to Zope and I'm reading through a few tutorials
> and the Zope book. I need to do a text string search on
> a ZODB and I need to know which objects contain the string.
> Example: I have a site running up, and I need to know
> where my mail is mentioned, so I can edit each object
> and update the mail. (I think using ZMI)
> >From the documentation I think that ZCatalog might do
> the trick, but I'm not sure it's the easier solution.
> Am I on the right path?
> Can you get me started?
> I just need a fixed string search, returning the name
> (maybe the path too) of the object inside the ZODB, so
> I can later edit.
> Is ZMI the right tool to do simple editing?
> Also is ZCatalog already included in Zope, or do I need
> to install it?
> Thanks a lot for your time
> -- Peppe
> _______________________________________________
> Zope maillist  -  Zope at 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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070410/6ab59c97/attachment.htm

More information about the Zope mailing list