Commit 9f864263 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Accept arbitrary arguments to make it easier to extend in the future.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3223 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ea4c149
...@@ -597,6 +597,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -597,6 +597,7 @@ class ZCatalog(Folder, Persistent, Implicit):
This method should be overridden if necessary. This method should be overridden if necessary.
""" """
#LOG('ZSQLCatalog wrapObject', 0, 'object = %r, kw = %r' % (object, kw))
return object return object
def catalog_object(self, obj, url=None, idxs=[], is_object_moved=0, sql_catalog_id=None): def catalog_object(self, obj, url=None, idxs=[], is_object_moved=0, sql_catalog_id=None):
...@@ -631,7 +632,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -631,7 +632,7 @@ class ZCatalog(Folder, Persistent, Implicit):
destination_catalog.catalogObject(obj, url, is_object_moved=is_object_moved) destination_catalog.catalogObject(obj, url, is_object_moved=is_object_moved)
security.declarePrivate('queueCataloggedObject') security.declarePrivate('queueCataloggedObject')
def queueCataloggedObject(self, object, sql_catalog_id=None, **kw): def queueCataloggedObject(self, object, sql_catalog_id=None, *args, **kw):
""" """
Add an object into the queue for catalogging the object later in a batch form. Add an object into the queue for catalogging the object later in a batch form.
""" """
...@@ -640,13 +641,13 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -640,13 +641,13 @@ class ZCatalog(Folder, Persistent, Implicit):
catalog.queueCataloggedObject(object, **kw) catalog.queueCataloggedObject(object, **kw)
security.declarePublic('flushQueuedObjectList') security.declarePublic('flushQueuedObjectList')
def flushQueuedObjectList(self, sql_catalog_id=None, **kw): def flushQueuedObjectList(self, sql_catalog_id=None, *args, **kw):
""" """
Flush queued objects. Flush queued objects.
""" """
catalog = self.getSQLCatalog(sql_catalog_id) catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None: if catalog is not None:
catalog.flushQueuedObjectList(object, **kw) catalog.flushQueuedObjectList(object, *args, **kw)
def uncatalog_object(self, uid, sql_catalog_id=None): def uncatalog_object(self, uid, sql_catalog_id=None):
""" wrapper around catalog """ """ wrapper around catalog """
......
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