Commit 18086cee authored by Romain Courteaud's avatar Romain Courteaud

Support python script in the catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ffd6919
......@@ -1625,6 +1625,9 @@ class Catalog( Folder,
if method.meta_type in ("Z SQL Method", "LDIF Method"):
# Build the dictionnary of values
arguments = split(method.arguments_src)
elif method.meta_type == "Script (Python)":
arguments = \
method.func_code.co_varnames[:method.func_code.co_argcount]
else:
arguments = []
for arg in arguments:
......
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