[Erp5-report] r8256 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 30 15:46:51 CEST 2006
Author: chris
Date: Fri Jun 30 15:46:48 2006
New Revision: 8256
URL: http://svn.erp5.org?rev=8256&view=rev
Log:
- Moved if to be more logic (reported by Alex)
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=8256&r1=8255&r2=8256&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Fri Jun 30 15:46:48 2006
@@ -373,13 +373,13 @@
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()
More information about the Erp5-report
mailing list