RE: [Zope] Getting class hierarchy in products

2000-11-02 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]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: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Getting class hierarchy in products

2000-11-02 Thread Dieter Maurer

seb writes:
  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...
o.__class__.__bases__


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )