[Grok-dev] Why must a CodeView have a render() method?
sylvain at infrae.com
Mon Jul 13 05:15:55 EDT 2009
On Mon, 13 Jul 2009 00:36:15 +0800
Martin Aspeli <optilude+lists at gmail.com> wrote:
> Martin Aspeli wrote:
> > Hi,
> Mmm... under five.grok, at least, it seems that the view cannot be
> published anyway. I have a view like this:
> from five import grok
> from zope.interface import Interface
> class DebugView(grok.CodeView):
> def render(self):
> import pdb; pdb.set_trace( )
> return ''
> However, I can't traverse to @@debug anywhere. This used to work when
> this was just grok.View (which now gives an error).
Well, CodeView is fairly new and have been created at the Europython
sprint. I guess we need to support it in five.grok: it will be adding
Acquistion.Explicit as base class of CodeView here, to make the Zope
2 publisher happy.
Maybe we can do a release 1.0 of five.grok right after (Godefroid was
asking for at the Europython).
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 188 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090713/0fa77a38/attachment.bin
More information about the Grok-dev