[Zope] Programmatically adding my product
rra42
rra42@yahoo.co.uk
Thu, 22 Aug 2002 13:36:34 +0100
Yes, it was helpful, in that up to now, I had not been able to
programmatically add anything. Now can add OFS products and I'm sure
anything else supplied with the distro.
The problem is that the recipe in the cookbook did not work for my own
ZClass based product and the reason I believe is that the ZClass derived
product does not have a method of the form manage_addXXXX(id='yyyy').
Always reports an attribute error. Investigating using type() and dir()
help somewhat, but I'm no further on.
Tim Hicks wrote:
>>I have the same problem as Damon. I have a product based on a ZClass.
>>I have followed the example of the cookbook, and can easily get OFS
>>products to add because they seem to have a
>>manage_addXXXXXX(id='yyyy') attribute.
>>
>>However, my product based on the ZClass has no such attribute, hence the
>>attribute error. The only attributes it appears to have are '_product'
>>and '_d' and none of those appear to have an attributed
>>'manage_addXXXXXX(id='yyyy').
>>
>>Any further help greatly appreciated.
>>
>
>Did Oliver's link not help??
>
>tim
>
>>>please see
>>>http://www.zopelabs.com/cookbook/1012279676
>>>
>>>for an explanation how to do that.
>>>
>>>
>>>cheers,
>>>oliver
>>>
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.yahoo.com