[Erp5-report] r13643 - /erp5/trunk/products/ERP5Form/SelectionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 26 14:47:33 CEST 2007


Author: rafael
Date: Mon Mar 26 14:47:23 2007
New Revision: 13643

URL: http://svn.erp5.org?rev=13643&view=rev
Log:
This fix should not change other parts only Planning Box stuff.
Remove hasattr() this is already validated inside Planning Box.


Modified:
    erp5/trunk/products/ERP5Form/SelectionTool.py

Modified: erp5/trunk/products/ERP5Form/SelectionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/SelectionTool.py?rev=13643&r1=13642&r2=13643&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/SelectionTool.py (original)
+++ erp5/trunk/products/ERP5Form/SelectionTool.py Mon Mar 26 14:47:23 2007
@@ -1372,10 +1372,8 @@
       if hasattr(aq_base(root), 'objectValues'):
         # If this is a folder, try to browse the hierarchy
         object_list = root.searchFolder(sort_on=sort_on)
-    elif hasattr(aq_base(root), list_method.__name__ ):
+    else:
       object_list = list_method(portal_type=filtered_portal_types)
-    else:      
-      object_list = []
     for zo in object_list:
       o = zo.getObject()
       if o is not None:




More information about the Erp5-report mailing list