Commit 6f0e9235 authored by Jean-Paul Smets's avatar Jean-Paul Smets

merged


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1443 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1455f688
......@@ -385,20 +385,12 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
kw['uid'] = index
kw['insert_catalog_line'] = insert_catalog_line
# Alter/Create row
try:
zope_root = getToolByName(self, 'portal_url').getPortalObject().aq_parent
root_indexable = int(getattr(zope_root,'isIndexable',1))
if root_indexable:
LOG("Call SQL Method %s with args:" % method_name,0, str(kw))
method(**kw)
# LOG
# Alter row
# Create row
try:
zope_root = self.getPortalObject().aq_parent
root_indexable = int(getattr(zope_root,'isIndexable',1))
if root_indexable:
#LOG("Call SQL Method %s with args:" % method_name,0, str(kw))
method(**kw)
except:
LOG("SQLCatalog Warning: could not catalog object with method %s" % method_name,100, str(path))
raise
......
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