Commit eb8569bc authored by Aurel's avatar Aurel

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8793 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97d7ff21
......@@ -2378,8 +2378,9 @@ class DocumentTemplateItem(BaseTemplateItem):
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
......
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