File management using Zope's API
I'd like to manage (create, modify, ...) Zope File objects using Zope API in Python External Methods. The only thing I have found is the API reference but unfortunately I still don't know anything about how to use Zope API... Could someone tell me where I could find tutorials or guides to learn how to use Zope's API ? thanks ____________________________________________________________________ - http://www.WebMailSPro.com - >> VOTRE service d'email sans pub avec VOTRE nom de domaine
Hi Nicolas, what do you mean with Zope File Objects? Zops own objects are in the ZODB, a closed object database. However, with external methods you can filddle around with the filesystem of the machine, you may want to consult a general python manual for this (modules sys, os and os.path might be of interest in this case) If you in fact mean how to manipulate objects in the ZODB with external methods, you can either look into the implementation of ObjectManager() which defines most of the methods or consult the zope book. HTH Tino Wildenhain --On Mittwoch, 25. Juli 2001 11:06 +0100 Nicolas Villetard <nicoml@webmails.com> wrote:
I'd like to manage (create, modify, ...) Zope File objects using Zope API in Python External Methods.
The only thing I have found is the API reference but unfortunately I still don't know anything about how to use Zope API...
Could someone tell me where I could find tutorials or guides to learn how to use Zope's API ?
thanks
____________________________________________________________________ - http://www.WebMailSPro.com - >> VOTRE service d'email sans pub avec VOTRE nom de domaine
_______________________________________________ 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 )
Nicolas Villetard writes:
I'd like to manage (create, modify, ...) Zope File objects using Zope API in Python External Methods.
The only thing I have found is the API reference but unfortunately I still don't know anything about how to use Zope API... It is incredibly simple:
A Zope object is an instance of some class. A class implements a set of interfaces. An interface is a set of attributes, i.e. members and methods. These interfaces are described in the API. How to use it: if you have an object "o" from class "c" implementing interface "i" defining method "m", then you use o.m(... parameters as defined by "i" ...) The interface also speaks of constructors. They are used to construct (= create) objects. They are methods of so called product factories. You use them as follows: container.manage_addProduct[...product_name...].constructor( ... parameters as defined by "i" ...) to add an object to "container". You find more information in the "OO preliminaries" section of URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Dieter
participants (3)
-
Dieter Maurer -
Nicolas Villetard -
Tino Wildenhain