Commit 3509d14c authored by Christophe Dumez's avatar Christophe Dumez

- Moved if to be more logic (reported by Alex)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8256 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f048a3a
......@@ -373,13 +373,13 @@ class BaseTemplateItem(Implicit, Persistent):
obj._owner = None
if hasattr(aq_base(obj), 'uid'):
obj.uid = None
if hasattr(aq_base(obj), '_filepath'):
obj._filepath = None
if getattr(obj, 'meta_type', None) == 'Script (Python)':
if hasattr(aq_base(obj), '_code'):
obj._code = None
if hasattr(aq_base(obj), 'Python_magic'):
obj.Python_magic = None
if hasattr(aq_base(obj), '_filepath'):
obj._filepath = None
elif getattr(obj, 'meta_type', None) == 'ERP5 PDF Form' :
if not obj.getProperty('business_template_include_content', 1) :
obj.deletePdfContent()
......
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