[Zope] Getting class hierarchy in products

Max M maxmcorp@worldonline.dk
Thu, 2 Nov 2000 20:29:11 +0100


From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of seb

>I've got a method which recurses through folders, copying their contents
unless >they are of a certain type.

>Is there a way of checking the base classes of an object from python?

Your description is a bit vague, but here goes, when calling objectValues()
you can give it a parameter:

objectValues('Folder')

or for several "Meta Types":

objectValues(['Folder', 'Image'])

Regards

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Specialization is for insects.  -  Robert A. Heinlein