Commit bbad3ba9 authored by Sebastien Robin's avatar Sebastien Robin

call beforeCatalogClear on the catalog instead of the tool

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17292 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0ab1bb48
......@@ -1474,6 +1474,8 @@ class Catalog( Folder,
def manage_catalogClear(self, REQUEST=None, RESPONSE=None,
URL1=None, sql_catalog_id=None):
""" clears the whole enchilada """
self.beforeCatalogClear()
self.clear()
if RESPONSE and URL1:
......
......@@ -587,8 +587,6 @@ class ZCatalog(Folder, Persistent, Implicit):
if REQUEST is not None and sql_catalog_id is None:
sql_catalog_id = REQUEST.get('sql_catalog_id', None)
self.beforeCatalogClear()
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
catalog.manage_catalogClear(REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL1)
......
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