[Zope] class name of current object

Dieter Maurer dieter@handshake.de
Thu, 17 Aug 2000 20:30:06 +0200 (CEST)


Scott Shepherd writes:
 > Is there a way to get the current object's class name?
 > 
 > <dtml-var "this.__class__.__name__">
 > 
 > doesn't work.
You will not be able to access any attribute/method that starts with
'_'.

If the "meta type" is sufficient for you,
you may use:

	<dtml-var "this.meta_type">

Dieter