[Erp5-report] r11627 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 7 10:26:56 CET 2006
Author: jerome
Date: Thu Dec 7 10:26:51 2006
New Revision: 11627
URL: http://svn.erp5.org?rev=11627&view=rev
Log:
MessageTranslationTemplateItem only imports translation.po
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=11627&r1=11626&r2=11627&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Dec 7 10:26:51 2006
@@ -3539,8 +3539,9 @@
f.close()
def _importFile(self, file_name, file):
- text = file.read()
- self._objects[file_name[:-3]]=text
+ if os.path.split(file_name)[1] == 'translation.po':
+ text = file.read()
+ self._objects[file_name[:-3]] = text
class LocalRolesTemplateItem(BaseTemplateItem):
More information about the Erp5-report
mailing list