[Zope] Programmatically adding my product
Oliver Bleutgen
myzope@gmx.net
Wed, 21 Aug 2002 19:19:26 +0200
Damon Eckhoff wrote:
> Hey All,
>
> I have a product, MyProduct, and am not able to add it programmatically.
>
> For Example.. inside a python script I do:
>
> folder_id = "yada"
> folder_obj = getattr( container, folder_id )
> folder_obj.manage_addMyProduct( id, title, etc )
>
> This raises an AttributError with value of 'manage_addMyProduct'. I can
> add/edit/view my product from the ZMI without any problem. I'm stumped,
> could someone help? I have no idea what direction to pursue on this one.
please see
http://www.zopelabs.com/cookbook/1012279676
for an explanation how to do that.
cheers,
oliver