[Erp5-report] r29647 - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 14 14:30:19 CEST 2009
Author: kazuhiko
Date: Wed Oct 14 14:30:06 2009
New Revision: 29647
URL: http://svn.erp5.org?rev=29647&view=rev
Log:
we don't need to call test() because test() is already called in getFilteredActionListFor().
Modified:
erp5/trunk/products/ERP5Type/ERP5Type.py
Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=29647&r1=29646&r2=29647&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Wed Oct 14 14:30:06 2009
@@ -499,14 +499,13 @@
best_action = (), None
for action in self.getFilteredActionListFor(ob):
if action.getReference() == view:
- if action.test(ec):
- break
+ break
else:
# In case that "view" (or "list") action is not present or not allowed,
# find something that's allowed (of the same category, if possible).
index = (action.getActionType().endswith('_' + view),
-action.getFloatIndex())
- if best_action[0] < index and action.test(ec):
+ if best_action[0] < index:
best_action = index, action
else:
action = best_action[1]
More information about the Erp5-report
mailing list