[Zope-CMF] Adding properties to a content type programmatically....
Ausum Studio
ausum_studio@hotmail.com
Fri, 6 Dec 2002 07:54:26 -0500
context.portal_metadata.addElementSpec(element, is_multi_valued)
...where 'is_multi_valued' is 1 or 0. This will make the new element
(property) available to all your content types.
Ausum
----- Original Message -----
From: "John Paul" <rmpconsult2@mydestiny.net>
To: <zope-cmf-request@zope.org>; <zope-cmf@zope.org>
Sent: Friday, December 06, 2002 5:58 AM
Subject: [Zope-CMF] Adding properties to a content type programmatically....
>
>
>
> Hi
>
> How can i add properties to a content type programmatically? We manage to
> add a content type that renders an image.... but the problem is we have to
> add it through ZMI.... so is there a way to add it programmatically..
>
> Thanks for any help.....
>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>