I'm a Zope Newbie. How do I determine the type of an object instance, so that I can distinguish between Folders and other types of object? Elliot --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02
In which context do you need this kind of information? In general every object has an attribute 'meta_type' that keeps the type of the object. -aj ----- Original Message ----- From: "Elliot Clifton" <ec@clif2.com> To: <zope@zope.org> Sent: Sunday, September 01, 2002 21:09 Subject: [Zope] Objects in Zope
I'm a Zope Newbie.
How do I determine the type of an object instance, so that I can distinguish between Folders and other types of object?
Elliot
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02
_______________________________________________ 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 )
Elliot Clifton writes:
How do I determine the type of an object instance, so that I can distinguish between Folders and other types of object? Zope objects have an attribute "meta_type". You can use it to determine the object's type.
Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Elliot Clifton