[Erp5-report] r34433 lucas - /erp5/trunk/products/ERP5Type/XMLMatrix.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 9 16:25:54 CEST 2010
Author: lucas
Date: Fri Apr 9 16:25:49 2010
New Revision: 34433
URL: http://svn.erp5.org?rev=34433&view=rev
Log:
Script variable can be None. So it was not raising well. Now is possible to see which Portal Type does not have cell range script.
Modified:
erp5/trunk/products/ERP5Type/XMLMatrix.py
Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=34433&r1=34432&r2=34433&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Fri Apr 9 16:25:49 2010
@@ -308,12 +308,11 @@
asCellRange scripts should be unified if possible
"""
script = self._getTypeBasedMethod('asCellRange', **kw)
- try:
- cell_range = script(base_id=base_id, matrixbox=0, **kw)
- except UnboundLocalError:
+ if script is None:
raise UnboundLocalError,\
- "Did not find cell range script for portal type: %r" %\
- self.getPortalType()
+ "Did not find cell range script for portal type: %r" %\
+ self.getPortalType()
+ cell_range = script(base_id=base_id, matrixbox=0, **kw)
self._setCellRange(base_id=base_id, *cell_range)
security.declareProtected(Permissions.ModifyPortalContent,
More information about the Erp5-report
mailing list