[Zope3-dev] Relative path and default for factory id?
Jim Fulton
jim at zope.com
Mon Dec 6 07:51:38 EST 2004
Florian Lindner wrote:
> Hello,
> one question and one suggestion:
>
> Why can't factory id be relative class paths.
>
> <factory id=".event.EventFolder" description="CS EventFolder"/>
>
> does not work, whereas
>
> <factory id="CS.Event.event.EventFolder" description="CS EventFolder"/>
>
> works? In most other ZCML directives relative paths work.
See the tutorial. Relative paths can only be used to name objects in
modules. Ids are global and, thus, have nothing to be relative to.
Ids and objects names are different, even though they both involve dots/
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list