[Erp5-report] r9941 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 15 01:10:38 CEST 2006
Author: vincent
Date: Fri Sep 15 01:10:36 2006
New Revision: 9941
URL: http://svn.erp5.org?rev=9941&view=rev
Log:
Do not use hardcoded listbox name to store validation result into request.
Add getPhysicalPath on renderer base class to make ZopeProfiler happy.
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=9941&r1=9940&r2=9941&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Fri Sep 15 01:10:36 2006
@@ -441,6 +441,14 @@
v = getattr(self, k)
if isinstance(v, VolatileCachingMethod):
setattr(self, k, InstanceMethod(self, v))
+
+ def getPhysicalPath(self):
+ """
+ Return the path of form we render.
+ This function is required to be able to use ZopeProfiler product with
+ listbox.
+ """
+ return self.field.getPhysicalPath()
def getLineClass(self):
"""Return a class object for a line. This must be overridden.
@@ -2800,7 +2808,7 @@
if len(listbox)>0:
list_method = field.get_value('list_method')
list_method = getattr(here, list_method.method_name)
- REQUEST.set('listbox',listbox)
+ REQUEST.set(field.id, listbox)
object_list = list_method(REQUEST=REQUEST,**params)
for uid in listbox_uids:
if str(uid).find('new') == 0:
More information about the Erp5-report
mailing list