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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 4 22:26:18 CEST 2006


Author: yo
Date: Thu May  4 22:26:15 2006
New Revision: 7087

URL: http://svn.erp5.org?rev=7087&view=rev
Log:
Allow domain_path and report_path to be set to None.

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=7087&r1=7086&r2=7087&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Selection.py (original)
+++ erp5/trunk/products/ERP5Form/Selection.py Thu May  4 22:26:15 2006
@@ -165,7 +165,7 @@
               self.params[key] = params[key]
         if kw is not None:
           for k,v in kw.items():
-            if k in ('domain', 'report') or v is not None:
+            if k in ('domain', 'report', 'domain_path', 'report_path') or v is not None:
               # XXX Because method_path is an URI, it must be in ASCII.
               #     Shouldn't Zope automatically does this conversion? -yo
               if k == 'method_path' and type(v) is type(u'a'):
@@ -284,7 +284,7 @@
         if self.domain_path is None:
           if default is None:
             self.domain_path = self.getDomainList()[0]
-          else:            
+          else:
             self.domain_path = default
         return self.domain_path
 
@@ -299,10 +299,10 @@
         if self.report_path is None:
           if default is None:
             self.report_path = self.getReportList()[0]
-          else:            
+          else:
             self.report_path = default
         return self.report_path
-        
+
     security.declarePublic('getZoom')
     def getZoom(self):
       try:




More information about the Erp5-report mailing list