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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 19 17:19:56 CEST 2006


Author: kevin
Date: Wed Jul 19 17:18:38 2006
New Revision: 8611

URL: http://svn.erp5.org?rev=8611&view=rev
Log:
Sorry my previous stupid patch was a bad-stupid patch. This one is my true-stupid patch.

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=8611&r1=8610&r2=8611&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Wed Jul 19 17:18:38 2006
@@ -2064,12 +2064,9 @@
     method_id = self.field.get_value('page_template')
     if method_id not in (None, ''):
       try:
-        return aq_base(getattr(self.getContext(), method_id)).__of__(context)
+        return getattr(context, method_id)
       except AttributeError:
-        page_template = getattr( context.getPortalObject()
-                               , method_id
-                               )
-        return page_template.__of__(context)
+        return getattr(context.getPortalObject(), method_id).__of__(context)
       return aq_base(getattr(self.getContext(), method_id)).__of__(context)
 
     # Otherwise, use the default one.




More information about the Erp5-report mailing list