Commit 7a827e71 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix bug in zope 2.8 : context.asHTML.REQUEST is a <Special Object Used to...

Fix bug in zope 2.8 : context.asHTML.REQUEST is a <Special Object Used to Force Acquisition> hich resolves to an empty string instead of a REQUEST, which makes the code fail in Shared.DC.Scripts.Bindings.py:_getTraverseSubpath.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9831 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b37e73d
...@@ -2081,7 +2081,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer): ...@@ -2081,7 +2081,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer):
return aq_base(getattr(self.getContext(), method_id)).__of__(context) return aq_base(getattr(self.getContext(), method_id)).__of__(context)
# Otherwise, use the default one. # Otherwise, use the default one.
return context.asHTML return context.asHTML.__of__(context)
def render(self, **kw): def render(self, **kw):
"""Render the data in HTML. """Render the data in HTML.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment