[Grok-dev] A simple view grokker?

Jan-Wijbrand Kolman janwijbrand at gmail.com
Sat Mar 21 15:31:53 EDT 2009


On Thu, Mar 19, 2009 at 10:51 AM, Martin Aspeli
<optilude+lists at gmail.com> wrote:
> Hi folks,
>
> Today, I've used grokcore.view (actually, five.grok) for a few views
> that are not, strictly speaking, browser pages. One of them is a form
> handler that does all its work in __call__() and then redirects to one
> of several possible pages. The other is a control panel form that uses
> some Plone base classes and z3c.form.
>
> In both cases, I don't want a render() or a template. Unfortunately, I
> have to define an empty render() for the grok.View grokker to work. I'm
> also a bit worried that the various helpers that grok.View has in the
> base class could collide with some of the forms stuff.
>
> Perhaps it would be nice to have a grok.SimpleView (better names
> welcome) grokker that registered a view and supported the various
> directives, but did not attempt to find a template or provided any base
> class functions beyond the __init__?

Note that something like this is actually "in the works":

  http://permalink.gmane.org/gmane.comp.web.zope.grok.devel/6912

regards,
jw

-- 
Jan-Wijbrand Kolman


More information about the Grok-dev mailing list