Getting class hierarchy in products
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? Or perhaps I should be doing this differently... Cheers, seb
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
participants (2)
-
Max M -
seb