Commit 31f00714 authored by Jim Fulton's avatar Jim Fulton

Fixed a bug that prevented registration of Python product DTML methods

stored in product sub-directories.
parent aec66bae
......@@ -209,7 +209,8 @@ class ProductContext:
for method in constructors[1:]:
if type(method) is tt: name, method = method
else: name=method.__name__
else:
name=os.path.split(method.__name__)[-1]
if not productObject.__dict__.has_key(name):
m[name]=method
m[name+'__roles__']=pr
......
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