Commit a167d4d6 authored by Sebastien Robin's avatar Sebastien Robin

make beforeUncatalogObject compatible with old sites

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11433 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bdd33aef
......@@ -1228,6 +1228,11 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
method_name = self.sql_catalog_delete_uid
if uid is None:
return None
if method_name in (None,''):
# This should exist only if the site is not up to date.
LOG('ZSQLCatalog.beforeUncatalogObject',0,'The sql_catalog_delete_uid'\
+ ' method is not defined')
self.uncatalogObject(path=path,uid=uid)
method = getattr(self, method_name)
method(uid = uid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment