[Erp5-report] r43661 kazuhiko - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 24 12:08:58 CET 2011
Author: kazuhiko
Date: Thu Feb 24 12:08:57 2011
New Revision: 43661
URL: http://svn.erp5.org?rev=43661&view=rev
Log:
we need a fallback list when both getPreferredWorkingCopyList() and getPreferredSubversionWorkingCopyList() return None, otherwise we get the following exception:
TypeError: 'NoneType' object is not iterable
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=43661&r1=43660&r2=43661&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Feb 24 12:08:57 2011
@@ -5099,7 +5099,7 @@ Business Template is a set of definition
from App.config import getConfiguration
instance_home = getConfiguration().instancehome
for path in (preferences.getPreferredWorkingCopyList() or # BBB
- preferences.getPreferredSubversionWorkingCopyList()):
+ preferences.getPreferredSubversionWorkingCopyList() or ['bt5']):
if not os.path.isabs(path):
path = os.path.join(instance_home, path)
bt_path = os.path.join(path, bt_name)
More information about the Erp5-report
mailing list