[Zope-dev] Naive API question(s)

Shane Hathaway shane@zope.com
Mon, 17 Sep 2001 16:18:16 -0400


Holger Blasum wrote:
> Dear *, 
> 
> naively I volunteered for a talk on zope in autumn to a (small) CS student 
> audience. However, I must confess that do not understand the 
> basics about the API:
> 
> What is the most general and state-of-the-art way (including
> necessary imports from the zope python library), to non-interactively
> - add an Object o of type (class) t in context (directory location) c to Zope ?
> - call a method m of that object (that eg was found in its source code) ?
> - (optional) set and alter a public attribute a of that object ?
> - delete that Object o from context c ?

Look at Appendix B of the Zope Book:

http://www.zope.org/Documentation/Guides/ZopeBook/AppendixB.dtml

Specifically, look at the manage_addProduct documentation found in the 
ObjectManager class.

Shane