[Zope-CMF] How to use "typesTool.manage_addTypeInformation" ?
Dieter Maurer
dieter at handshake.de
Fri May 6 12:50:46 EDT 2005
KLEIN Stéphane wrote at 2005-5-5 19:40 +0200:
> ...
> typesTool.manage_addTypeInformation(
> add_meta_type = factory_type_information['meta_type'],
> id = factory_type_information['id']
> )
> ...
> File
>"/home/harobed/newzope/Products/ZHelloWorld/Extensions/Install.py", line
>22, in install
> )
>
> File "/home/harobed/newzope/Products/CMFCore/TypesTool.py", line 598,
>in manage_addTypeInformation
> raise ValueError, (
>
>ValueError: Meta type ZHelloWorld is not a type class.
The "add_meta_type" must refer to a class described by
"Products.CMFCore.TypesTool.typeClasses".
By default, "typeClasses" describes just "FactoryTypeInformation"
and "ScriptableTypeInformation".
Obviously, your "add_meta_type" does not fulfill this
requirement.
--
Dieter
More information about the Zope-CMF
mailing list