Commit 41b707da authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed bug ...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3528 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 979c1b34
...@@ -1830,7 +1830,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -1830,7 +1830,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
script = getattr(self, script_id) script = getattr(self, script_id)
else: else:
for script_name_begin in [self.getPortalType(), self.getMetaType(), self.__class__.__name__]: for script_name_begin in [self.getPortalType(), self.getMetaType(), self.__class__.__name__]:
script_name = join( [ replace(script_name_begin, ' ','') , script_name_end ], '') script_name = join([script_name_begin.replace(' ',''), script_name_end ], '')
if hasattr(self, script_name): if hasattr(self, script_name):
script = getattr(self, script_name) script = getattr(self, script_name)
break break
......
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