[Kss-devel] Rendering browser view template macros with macroContent
JC Brand
jc at upfrontsystems.co.za
Sat Oct 11 14:15:59 CEST 2008
Hedley Roos wrote:
> In zope/app/pagetemplate/simpleviewclass.py you'll see 'index' is an
> instance of ViewPageTemplateFile from
> zope.app.pagetemplate.viewpagetemplatefile.
I see thanks.
> macroContent needs work. So far I have my own code that can render
> macros in viewlets and portlets, and now you have code that can render
> macros in views.
>
> We should discuss the way forward with Balazs and Godefroid.
Agreed, I think it would be great to have a one size fits all approach.
> You don't have to hack macroContent. You should have a "class
> KssView(Implicit, PloneKSSView)" declaration somewhere. Just subclass
> PloneKSSView, override the macroContent method and use that class as a
> mix-in instead of PloneKSSView.
Will do, so far I've been overriding it in my KssView class.
Cheers
More information about the Kss-devel
mailing list