Commit 6c3bc716 authored by Sebastien Robin's avatar Sebastien Robin

allow to select None for several properties


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2467 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4889646f
......@@ -133,13 +133,21 @@ class InteractionDefinition (SimpleItem):
self.method_id = method_id.split()
else:
self.method_id = method_id
if portal_type_filter is not None and 'None' in portal_type_filter:
portal_type_filter = None
if 'None' in after_script_name:
after_script_name = ()
if 'None' in activate_script_name:
activate_script_name = ()
if 'None' in script_name:
script_name = ()
self.portal_type_filter = portal_type_filter
self.title = str(title)
self.description = str(description)
self.trigger_type = int(trigger_type)
self.script_name = map(lambda x: str(x), script_name)
self.after_script_name = map(lambda x: str(x), after_script_name)
self.activate_script_name = map(lambda x: str(x), activate_script_name)
self.script_name = script_name
self.after_script_name = after_script_name
self.activate_script_name = activate_script_name
g = Guard()
if g.changeFromProperties(props or REQUEST):
self.guard = g
......
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