Commit 7bd3c3ef authored by Sebastien Robin's avatar Sebastien Robin

get zsql method from the site, not from activity_tool, this prevent...

get zsql method from the site, not from activity_tool, this prevent acquisition problems when calling zsql methods (second try)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4191 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25c74c20
...@@ -1052,7 +1052,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -1052,7 +1052,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
continue continue
#LOG('catalogObjectList', 0, 'method_name = %s' % (method_name,)) #LOG('catalogObjectList', 0, 'method_name = %s' % (method_name,))
method = getattr(site_root, method_name) method = getattr(self, method_name)
if method.meta_type == "Z SQL Method": if method.meta_type == "Z SQL Method":
# Build the dictionnary of values # Build the dictionnary of values
arguments = method.arguments_src arguments = method.arguments_src
...@@ -1075,7 +1075,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -1075,7 +1075,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
append(value) append(value)
kw[arg] = value_list kw[arg] = value_list
method = aq_base(method).__of__(self) # Use method in the context of portal_catalog method = aq_base(method).__of__(site_root.portal_catalog) # Use method in
# the context of portal_catalog
# Alter/Create row # Alter/Create row
try: try:
#start_time = DateTime() #start_time = DateTime()
......
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