[Zope] How to get the type of an object by dtml

Andreas Jung lists at zopyx.com
Thu Nov 30 02:26:48 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



- --On 29. November 2006 23:25:35 -0800 Allen Huang <swapp0 at yahoo.com> wrote:

> I want to do different operation to different object groups that I
> created my adding new products. But before I could do that I need to
> determine what the object I'm working with.
>
> Could anyone help me.. how do I use DTML to return the type of the object
> I'm currently working with?


obj.meta_type is usually the thing you're interested in.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFboe5CJIWIbr9KYwRApHYAJ0XGIaBuV9wzolUQis+16OOX8tLsgCdFlIY
r1gJyeOsROwiVTuDcVVvw+k=
=qT6N
-----END PGP SIGNATURE-----



More information about the Zope mailing list