[Zope3-dev] Relative path and default for factory id?

Florian Lindner mailinglists at xgm.de
Sun Dec 5 10:32:41 EST 2004


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.

If there are no reasons againt this I would file a wishlist item for that.


And one suggestion or idea:

What about making factory id default to the value like content class?
Example:

<content class=".event.EventFolder">
   [...]
   <factory id="default to .event.EventFolder" description="desc"/>
   [...]
</content>

I think in most cases content class and factory id are the same.
So there is less to write and configure.zcml files will become a little 
bit smaller thus easier to read.

What do think about these ideas?

Regards,

Florian





More information about the Zope3-dev mailing list