RE: [Zope] geting the type of an object from within dtml ??? == it works

2000-06-26 Thread Chris McDonough
PROTECTED]' Cc: 'ethan mindlace fremen' Subject: RE: [Zope] geting the type of an object from within dtml ??? == it works Hello, dtml-var "meta_type" works. Yes, it display the correct meta type. Thanks. When I had done some tests, I forgot to set the meta_type field, and the s

[Zope] geting the type of an object from within dtml ???

2000-06-25 Thread Thierry Nabeth
Hello, I have unsuccessifully been trying to figure out ou to get the type of an object from withing html. for instance: dtml-var meta_type does not return the correct type. Python is supposed to have a function type(object) that return the type, but I was not able to find a way to call it.

Re: [Zope] geting the type of an object from within dtml ???

2000-06-25 Thread ethan mindlace fremen
Thierry Nabeth wrote: for instance: dtml-var meta_type does not return the correct type. dtml-var "meta_type" works. You can also use things like dtml-in "objectValues(['DTML Document'])" hope that helps, -- ethan mindlace fremen Zopatista Community Liason

Re: [Zope] geting the type of an object from within dtml ???

2000-06-25 Thread alan runyan
I have unsuccessifully been trying to figure out ou to get the type of an object from withing html. are you talking about a ZOPE object? remember if you are a DTML Method your 'meta_type' will return the container object (it doenst have its own namespace) you could try dtml-with object