[Zope-CMF] Re: New factory stuff

yuppie y.2007- at wcm-solutions.de
Fri Jun 22 06:04:04 EDT 2007

Hi Charlie!

Charlie Clark wrote:
> One thing I haven't quite sussed: my products are still registered using 
> ContentType.addContentType function but I notice that the CMF Default 
> types make use of zope.component.factory and seem to register factories 
> somewhere, ie. cmf.document
> I haven't been able to recreate this behaviour myself despite invoking a 
> factory.

Did you register your factory as utility? Did you make sure 'product' is 
empty in your type info?

> Do I need to create my own namespace to register content types or can I 
> insert them in the cmf one?

The only reason a namespace is used is to make sure identifiers are 
unique. If you use your own namespace, you don't have to care about 
utility names used by other products.



More information about the Zope-CMF mailing list