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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jul 13 00:28:31 CEST 2006


Author: yo
Date: Thu Jul 13 00:28:30 2006
New Revision: 8428

URL: http://svn.erp5.org?rev=8428&view=rev
Log:
Get a page template from the real context. Fix a wrong variable being added in ListBoxListRenderer.

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=8428&r1=8427&r2=8428&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Thu Jul 13 00:28:30 2006
@@ -2047,7 +2047,7 @@
     # If a specific template is specified, use it.
     method_id = self.field.get_value('page_template')
     if method_id:
-      return getattr(context, method_id)
+      return aq_base(getattr(self.getContext(), method_id)).__of__(context)
 
     # Otherwise, use the default one.
     return context.asHTML
@@ -2673,7 +2673,7 @@
         if isinstance(value, str):
           value = value.replace(' ', ' ')
 
-        listboxline.addColumn(sql, value)
+        stat_listboxline.addColumn(sql, value)
 
       listboxline_list.append(stat_listboxline)
 




More information about the Erp5-report mailing list