[Erp5-report] r19376 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 19 10:20:24 CET 2008
Author: vincent
Date: Tue Feb 19 10:20:24 2008
New Revision: 19376
URL: http://svn.erp5.org?rev=19376&view=rev
Log:
Move parameters from kw to explicit parameters.
Keep **kw parameter for backward compatibility.
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=19376&r1=19375&r2=19376&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Tue Feb 19 10:20:24 2008
@@ -4470,7 +4470,8 @@
return modified_object_list
- def _install(self, force=1, object_to_update=None, **kw):
+ def _install(self, force=1, object_to_update=None, update_translation=0,
+ update_catalog=0, **kw):
"""
Install a new Business Template, if force, all will be upgraded or installed
otherwise depends of dict object_to_update
@@ -4538,8 +4539,6 @@
# update catalog if necessary
if force and self.isCatalogUpdatable():
update_catalog = 1
- else:
- update_catalog = kw.get('update_catalog', 0)
if update_catalog:
catalog = _getCatalogValue(self)
if (catalog is None) or (not site.isIndexable):
@@ -4589,7 +4588,6 @@
# Update translation table, in case we added new portal types or
# workflow states.
- update_translation = kw.get('update_translation', 0)
if update_translation:
site.ERP5Site_updateTranslationTable()
More information about the Erp5-report
mailing list