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

Florian Lindner mailinglists at xgm.de
Sun Dec 5 10:42:09 EST 2004


Florian Lindner schrieb:
> Hello,
> one question and one suggestion:

[...]

> 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.

Uhh, I feel a bit sheepish about it: Just reread the apidoc and this is 
actually the fact. And it also works when content class is relative. But 
why does is not work when factory id is given and relative?

Florian


More information about the Zope3-dev mailing list