[Grok-dev] Re: Neanderthal sprint topics

Wichert Akkerman wichert at wiggy.net
Tue Oct 2 11:59:23 EDT 2007


Previously Lennart Regebro wrote:
> On 10/2/07, Philipp von Weitershausen <philipp at weitershausen.de> wrote:
> > Not really. I just did a very simple hack to get Genshi working. I
> > don't know it well enough by far to suggest some good patterns. All I
> > know is that it should feel natural to Grok *and* Genshi developers.
> 
> Not being a Genshi developer, I wouldn't know what is natural. :-)
> 
> > Genshi uses the "push" model for templates (the view code pushes the
> > data that the template needs into the template, rather than ZPTs
> > fetching the data they need). I very much like "push". In Grok we
> > typically have "semi-push" where the view class prepares data as
> > attributes of self in update() and the the template accesses it as
> > view.foo. So Genshi templates need to at least get the 'view' object,
> > and the 'request' probably too. Perhaps 'context'.
> 
> So far so good. :-) We probably need to make the push story slightly simpler.
> But basically, it works now, except of course, you don't have any path
> expressions, mening you can't find any other views an call them, and
> that would be useful.

Is that necessary in a push model? If the template needs another view
your view can push that?

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Grok-dev mailing list