[Erp5-report] r13691 - /erp5/trunk/products/ERP5Form/Selection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 27 08:55:24 CEST 2007


Author: kazuhiko
Date: Tue Mar 27 08:55:18 2007
New Revision: 13691

URL: http://svn.erp5.org?rev=13691&view=rev
Log:
pass selection_name in calling a method in Selection.__call__().

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

Modified: erp5/trunk/products/ERP5Form/Selection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Selection.py?rev=13691&r1=13690&r2=13691&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Selection.py (original)
+++ erp5/trunk/products/ERP5Form/Selection.py Tue Mar 27 08:55:18 2007
@@ -196,13 +196,13 @@
           if callable(method):
             if self.domain is not None and self.report is not None:
               result = method(selection_domain = self.domain,
-                              selection_report = self.report, selection=self, **kw)
+                              selection_report = self.report, selection=self, selection_name=self.name, **kw)
             elif self.domain is not None:
-              result = method(selection_domain = self.domain, selection=self, **kw)
+              result = method(selection_domain = self.domain, selection=self, selection_name=self.name, **kw)
             elif self.report is not None:
-              result = method(selection_report = self.report, selection=self, **kw)
+              result = method(selection_report = self.report, selection=self, selection_name=self.name, **kw)
             else:
-              result = method(selection=self, **kw)
+              result = method(selection=self, selection_name=self.name, **kw)
             return result
           else:
             return []




More information about the Erp5-report mailing list