-----BEGIN PGP SIGNED MESSAGE-----
On 29 Mar 2006, at 17:23, Tres Seaver wrote:
- - define my own cmfcalendar skin and layer. Declare it as a
combination of layers cmfcalendar, cmf and default.
- - stick my views directly into layer "cmf" and don't worry about
defining my own layeer or skin.
I think the second route is the Right Way to do it with Zope 3 style
layers. I can't see a need to define an extra layer for CMFCalendar.
I still don't think that products should define the default layer, at
least not in the same ZCML file that is used to get all the "normal"
adapter / view registrations configured.
Both lead to errors like this:
ConfigurationError: ('Invalid value for', 'layer', "ImportError:
Couldn't import cmf, No module named cmf")
I guess the problem is the order in which Five loads the
files. But I have no idea what's the recommended way to make sure
CMFDefault's configure.zcml is loaded first.
%include it into the "dependent" one.
I ended up including it in CMFCalendar/configure.zcml:
<!-- Load CMFDefault.skin first, we use the layer named "cmf" it
... and it works as expected now. Thanks for the pointers!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests