Commit 8deb8ec4 authored by Nicolas Dumazet's avatar Nicolas Dumazet

add urls=None parameter to SQLCatalog.manage_catalogReindex to avoid a traceback

In /manage_catalogReindex:
Traceback (most recent call last):
  File ".../zope2/lib/python/ZPublisher/Publish.py", line 114, in publish
    request, bind=1)
  File ".../zope2/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File ".../zope2/lib/python/ZPublisher/Publish.py", line 40, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File ".../ZSQLCatalog/ZSQLCatalog.py", line 582, in manage_catalogReindex
    catalog.manage_catalogReindex(REQUEST, RESPONSE, URL1, urls=urls)
TypeError: manage_catalogReindex() got an unexpected keyword argument 'urls'



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31862 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d7414eb
...@@ -1146,7 +1146,7 @@ class Catalog(Folder, ...@@ -1146,7 +1146,7 @@ class Catalog(Folder,
RESPONSE.redirect(URL1 + '/manage_catalogView?manage_tabs_message=Object%20Uncataloged') RESPONSE.redirect(URL1 + '/manage_catalogView?manage_tabs_message=Object%20Uncataloged')
def manage_catalogReindex(self, REQUEST, RESPONSE, URL1): def manage_catalogReindex(self, REQUEST, RESPONSE, URL1, urls=None):
""" clear the catalog, then re-index everything """ """ clear the catalog, then re-index everything """
elapse = time.time() elapse = time.time()
c_elapse = time.clock() c_elapse = time.clock()
......
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