[Product-Developers] Re: ANN: Customisation tutorial
Martin Aspeli
optilude at gmx.net
Wed Jan 23 03:01:38 UTC 2008
Dorneles Treméa wrote:
> Hello,
>
>> I've seen some people confused by this (who obviously don't own my book
>> - limi said that's a "bug"), so I wrote a quick tutorial and demo
>> product showing the main types of filesystem customisation, including
>> the use of plone.browserlayer (which my book doesn't cover). There's
>> little fluff, but hopefully it's useful to a few of you.
>>
>> http://plone.org/documentation/tutorial/customization-for-developers
>
> well done, Martin! :-)
>
> What about changing the skins registration directory to the ZCML
> based way?
>
> IOW, removing:
>
> from Products.CMFCore.DirectoryView import registerDirectory
> GLOBALS = globals()
> registerDirectory('skins', GLOBALS)
>
> ...from __init__.py and adding:
>
> xmlns:cmf="http://namespaces.zope.org/cmf"
>
> <cmf:registerDirectory name="skins" directory="skins"
> recursive="True" />
>
> ...to configure.zcml? :-)
I didn't know you could do that. :)
Feel free to update the tutorial, but then please also change the
product in the collective.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
More information about the Product-Developers
mailing list