[Zope] index_object() in CatalogPathAwareness

Thomas Guettler Thomas Guettler <thomas@thomas-guettler.de>
Mon, 2 Dec 2002 21:19:18 +0100


Hi!

I think a CatalogPathAware object should raise an exception if there
is no "default_catalog". I think it is not good that it does silently
nothing:

CatalogPathAwareness.py:

    def index_object(self):
        """A common method to allow Findables to index themselves."""
        if hasattr(self, self.default_catalog):
            getattr(self,
                    self.default_catalog).catalog_object(self, self.getPath())

What do you think?

 thomas

-- 
Thomas Guettler <guettli@thomas-guettler.de>
http://www.thomas-guettler.de