[Erp5-report] r7838 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 19 09:20:45 CEST 2006
Author: yo
Date: Mon Jun 19 09:20:35 2006
New Revision: 7838
URL: http://svn.erp5.org?rev=7838&view=rev
Log:
Use ExtensionClass.Base instead of Acquisition.Implicit for renderer classes,
as they don't need acquisitions.
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=7838&r1=7837&r2=7838&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Mon Jun 19 09:20:35 2006
@@ -45,7 +45,8 @@
from Products.ERP5Type.Accessor.Accessor import Accessor as Method
from Products.ERP5Type.Message import Message
-from Acquisition import aq_base, aq_inner, aq_parent, aq_self, Implicit, aq_chain
+from Acquisition import aq_base, aq_inner, aq_parent, aq_self
+import ExtensionClass
from zLOG import LOG, WARNING
from ZODB.POSException import ConflictError
@@ -507,7 +508,7 @@
setattr(instance, self.key, result)
return result
-class ListBoxRenderer(Implicit):
+class ListBoxRenderer(ExtensionClass.Base):
"""This class deals with rendering of a ListBox field.
In ListBox, rendering is not only viewing but also setting parameters in a selection
@@ -1624,7 +1625,7 @@
"""
return self.render(**kw)
-class ListBoxRendererLine(Implicit):
+class ListBoxRendererLine(ExtensionClass.Base):
"""This class describes a line in a ListBox to assist ListBoxRenderer.
"""
def __init__(self, renderer = None, obj = None, index = 0, is_summary = False, context = None,
@@ -1962,7 +1963,7 @@
try:
start = self.request.get('list_start')
start = int(start)
- except TypeError, KeyError:
+ except (TypeError, KeyError):
param_dict = self.getParamDict()
start = param_dict.get('list_start', 0)
if isinstance(start, list):
More information about the Erp5-report
mailing list