Commit 4731ebd5 authored by Aurel's avatar Aurel

remove Python Magic from xml code when exporting python script


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7369 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99cbd1cf
......@@ -376,6 +376,8 @@ class BaseTemplateItem(Implicit, Persistent):
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
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