AW: [Checkins] SVN: z3c.resourceinclude/trunk/README.txt Added
commentson resource ordering.
Roger Ineichen
dev at projekt01.ch
Sun Mar 2 19:03:09 EST 2008
Hi Malthe
> resource ordering.
>
> On 02/03/2008, Roger Ineichen <dev at projekt01.ch> wrote:
> > Can you offer a weight argumment like we use in the viewlet
> > implementation?
>
> Not sure what you mean; which implementation is that?
The viewlet allows you to use a weight argument, the
default viewlet manager sorts on that if abvailable.
That's very good if you like to override CSS or JS
and you have make sure that you custom CSS or JS renders
at the end.
zope.viewlet.viewlet offers JS and CSS viewlets, even
resource bundle are possible to use. The resource files
get registered with the resource directive.
See zope.viewlet
line 110: JavaScriptViewlet
line 134: CSSViewlet
Are you sure that z3c.resourceinclude does not the same like this
viewlets?
> > Does resourceinclude minimize configuration or do you see other
> > benefits compared with viewlets?
>
> Certainly tries to make configuration easier.
>
> It does use viewlets, or at least a content provider. In my
> project I've registered the content provider as a viewlet::
>
> from z3c.resourceinclude.provider import ResourceIncludeProvider
>
> class Resources(ResourceIncludeProvider):
> def __init__(self, context, request, view, manager):
> super(Resources, self).__init__(context, request, view)
I didn't take a closer look at resourceinclude. But are you aware of
the concepts in zc.resourcelibrary, zope.viewlet and z3c.zrtresource?
I really like your improvments but I'm not sure if I understand
the goal. I just like to make sure that you aware of all the libs
out there.
Regards
Roger Ineichen
> \malthe
>
> --=====================--
> mail: mborch at gmail.com
> homepage: zeitmaschine.dk
> --=====================--
>
More information about the Checkins
mailing list