[Zope-CMF] Re: new cmf:registerDirectory directive
Tres Seaver
tseaver at palladion.com
Tue Feb 27 08:27:18 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yuppie wrote:
> Hi!
>
>
> I just added a new ZCML directive to the trunk (CMF 2.1):
>
> http://svn.zope.org/?rev=72873&view=rev
>
> Instead of using this in __init__.py:
>
> from Products.CMFCore.DirectoryView import registerDirectory
> registerDirectory('skins', globals())
>
> You now can use this ZCML directive in your Product or package:
>
> <cmf:registerDirectory name="zpt_calendar"/>
>
> Please note that by default subdirectories are no longer registered
> separately. To get exactly the same as above you have to use this:
>
> <cmf:registerDirectory
> name="skins"
> directory="skins"
> recursive="True"
> />
>
> But it is recommended to use a skins directory and register each
> subdirectory explicitly by its name.
>
>
> I didn't write a proposal in advance, so if there is something you don't
> like about this checkin I'll be happy to modify it.
+1.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF5DG1+gerLs4ltQ4RAtTvAJ9leFhLHSB8Zj1pq+wg55ILFGnehACfcCAn
i5zjeVquazWryonwE5XcYdE=
=AdiD
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list