[Erp5-report] r31049 nicolas - /erp5/trunk/products/ERP5OOo/FormPrintout.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 3 16:49:39 CET 2009
Author: nicolas
Date: Thu Dec 3 16:49:37 2009
New Revision: 31049
URL: http://svn.erp5.org?rev=31049&view=rev
Log:
Acquire REQUEST from context (faster)
Modified:
erp5/trunk/products/ERP5OOo/FormPrintout.py
Modified: erp5/trunk/products/ERP5OOo/FormPrintout.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/FormPrintout.py?rev=31049&r1=31048&r2=31049&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] Thu Dec 3 16:49:37 2009
@@ -36,7 +36,7 @@
from Products.ERP5OOo.OOoUtils import OOoBuilder
from Products.CMFCore.exceptions import AccessControl_Unauthorized
from Acquisition import Implicit, aq_base
-from Products.ERP5Type.Globals import InitializeClass, DTMLFile, Persistent, get_request
+from Products.ERP5Type.Globals import InitializeClass, DTMLFile, Persistent
from AccessControl import ClassSecurityInfo
from AccessControl.Role import RoleManager
from OFS.SimpleItem import Item
@@ -915,7 +915,7 @@
iteration_index -- the index which is used when iterating the group of items using ReportSection.
"""
field_list = form.get_fields(include_disabled=1)
- REQUEST = get_request()
+ REQUEST = here.REQUEST
for (count, field) in enumerate(field_list):
if isinstance(field, ListBox):
element_tree = self._appendTableByListbox(element_tree=element_tree,
@@ -1038,7 +1038,7 @@
extra_context=None, ooo_builder=None, iteration_index=0):
field_list = form.get_fields(include_disabled=1)
- REQUEST = get_request()
+ REQUEST = here.REQUEST
for (count, field) in enumerate(field_list):
field_value = self._renderField(field)
value = self._toUnicodeString(field_value)
More information about the Erp5-report
mailing list