[Erp5-report] r8793 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 26 11:35:45 CEST 2006
Author: aurel
Date: Wed Jul 26 11:35:41 2006
New Revision: 8793
URL: http://svn.erp5.org?rev=8793&view=rev
Log:
when installing file system class, pass create = 0 in order to update
file it ti already exists, and add log if this raised an IOError
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=8793&r1=8792&r2=8793&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Wed Jul 26 11:35:41 2006
@@ -2378,8 +2378,9 @@
path, name = os.path.split(id)
# This raises an exception if the file already exists.
try:
- globals()[self.local_file_writer_name](name, text, create=1)
+ globals()[self.local_file_writer_name](name, text, create=0)
except IOError, error:
+ LOG("BusinessTemplate.py", WARNING, "Cannot install class %s on file system" %(name,))
if error.errno :
raise
continue
More information about the Erp5-report
mailing list