Commit 7d039c81 authored by Nicolas Delaby's avatar Nicolas Delaby

simplification

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35429 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 194ef113
...@@ -472,7 +472,7 @@ class OOoTemplate(ZopePageTemplate): ...@@ -472,7 +472,7 @@ class OOoTemplate(ZopePageTemplate):
# Retrieve master document # Retrieve master document
ooo_document = None ooo_document = None
# If script is setting, call it # If script is setting, call it
if (self.ooo_script_name is not None) and (self.ooo_script_name != ''): if self.ooo_script_name:
ooo_script = getattr(here, self.ooo_script_name) ooo_script = getattr(here, self.ooo_script_name)
ooo_document = ooo_script(self.ooo_stylesheet) ooo_document = ooo_script(self.ooo_stylesheet)
else: else:
......
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