[Zope] Error when trying to add properties in python script
Steve Spicklemire
steve@spvi.com
Sat, 11 Aug 2001 08:40:31 -0500
On Saturday, August 11, 2001, at 07:42 AM, Robert Rottermann wrote:
> Hi there,
>
> I want to create an programaticaly and then set some attributes.
>
> While creating a property works fine, I can not access it afterwards.
>
> The following code:
>
> context.invokeFactory('PortalFolder', 'an_id')
> obj = context[str_id]
> obj.manage_addProperty("alter", 21, int)
> obj.manage_changeProperties({"alter": 21})
>
Try: obj.manage_addProperty("alter", 21, 'int')
-steve