[Erp5-report] r10078 - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 18 11:22:11 CEST 2006


Author: seb
Date: Mon Sep 18 11:22:09 2006
New Revision: 10078

URL: http://svn.erp5.org?rev=10078&view=rev
Log:
fixed a strange bug with the expression return here is not None and here or self.getForm().aq_parent

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

Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=10078&r1=10077&r2=10078&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Mon Sep 18 11:22:09 2006
@@ -460,8 +460,10 @@
   def getContext(self):
     """Return the context of rendering this ListBox.
     """
-    here = self.request.get('here')
-    return here is not None and here or self.getForm().aq_parent
+    value = self.request.get('here')
+    if value is None:
+      value = self.getForm().aq_parent
+    return value
 
   getContext = VolatileCachingMethod(getContext)
 




More information about the Erp5-report mailing list