[Zope] Wierdness with ZCatalogedObject product

Nigel Head nhead@houbits.com
Sun, 11 Aug 2002 17:53:35 +0200


On Sun, 11 Aug 2002 14:25:12 +0100
Chris Withers <chrisw@nipltd.com> wrote:

> Can you post the code of ZCataloguedObject's manager_changeProperties method?

Sure, should have done that first time .....

N.
=======================================================

    security.declareProtected(Permission, "manage_changeProperties")
    def manage_changeProperties(self, REQUEST=None, **kw):
        "override PropertyManager management methods to mixin catalog awareness"
        try:
            PropertyManager.manage_changeProperties(self, REQUEST, kw)
        finally:
            self.reindex_object()
        if REQUEST is not None:
            message="Saved changes."
            return self.manage_propertiesForm(self, REQUEST, manage_tabs_message=message)