[z3-five] Formlib custom template - AttributeError: debug.
Maciej Wisniowski
maciej.wisniowski at coig.katowice.pl
Fri Feb 16 12:26:17 CET 2007
> I got this yesterday as well. Zope 3 requests has a debug attribute, but
> Zope 2 requests have not. So there's a problem when Zope 3 code uses the
> Zope 2 request and expects there to be a debug attribute.
>
> I fixed this by adding the debug attribute to the ZPlublisher.HTTPRequest
> class inside __init__:
>
> from zope.publisher.base import DebugFlags
> self.debug = DebugFlags() # inside __init__
>
> Philipp said it will be fixed in Zope 2.11 or something. But there's no
> way we can wait that long to get our stuff working :)
>
Good to know but I wonder how default formlib form works then?
It also uses NamedTemplates and rest of the stuff just like I used
in my form.
Where is the point that original formlib 'pageform.pt' doesn't
raise this error? I didn't find anything about 'debug' in
formlib code (but maybe I missed something)?
--
Maciej Wisniowski
More information about the z3-five
mailing list