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

NABETH Thierry Thierry.NABETH@insead.fr
Mon, 26 Jun 2000 10:10:56 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFDF45.C6033660
Content-Type: text/plain;
	charset="iso-8859-1"

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 system was displaying the meta type of the superclass instead.
(which had confused me).

Note:
I am still not very confortable to use the "meta_type" field to get the
class name,
and would rather have prefered to have the real class itself. (python type
function).



Thank you again for your help.

Thierry

Thierry Nabeth
Research Fellow
INSEAD CALT (the Centre for Advanced Learning Technologies)
http://www.insead.fr/CALT/


-----Original Message-----
From: ethan mindlace fremen [mailto:mindlace@digicool.com]
Sent: Monday, June 26, 2000 3:43 AM
To: Thierry Nabeth
Cc: zope@zope.org
Subject: Re: [Zope] geting the type of an object from within dtml ???


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

------_=_NextPart_001_01BFDF45.C6033660
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: [Zope] geting the type of an object from within dtml ??? ==&gt; it works</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello,</FONT>
</P>

<P><FONT SIZE=2>&gt;&gt; &lt;dtml-var &quot;meta_type&quot;&gt; works.</FONT>
</P>

<P><FONT SIZE=2>Yes, it display the correct meta type. Thanks.</FONT>
</P>

<P><FONT SIZE=2>When I had done some tests, I forgot to set the meta_type field,</FONT>
<BR><FONT SIZE=2>and the system was displaying the meta type of the superclass instead.</FONT>
<BR><FONT SIZE=2>(which had confused me).</FONT>
</P>

<P><FONT SIZE=2>Note:</FONT>
<BR><FONT SIZE=2>I am still not very confortable to use the &quot;meta_type&quot; field to get the class name,</FONT>
<BR><FONT SIZE=2>and would rather have prefered to have the real class itself. (python type function).</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>Thank you again for your help.</FONT>
</P>

<P><FONT SIZE=2>Thierry</FONT>
</P>

<P><FONT SIZE=2>Thierry Nabeth</FONT>
<BR><FONT SIZE=2>Research Fellow</FONT>
<BR><FONT SIZE=2>INSEAD CALT (the Centre for Advanced Learning Technologies)</FONT>
<BR><FONT SIZE=2><A HREF="http://www.insead.fr/CALT/" TARGET="_blank">http://www.insead.fr/CALT/</A></FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: ethan mindlace fremen [<A HREF="mailto:mindlace@digicool.com">mailto:mindlace@digicool.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, June 26, 2000 3:43 AM</FONT>
<BR><FONT SIZE=2>To: Thierry Nabeth</FONT>
<BR><FONT SIZE=2>Cc: zope@zope.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [Zope] geting the type of an object from within dtml ???</FONT>
</P>
<BR>

<P><FONT SIZE=2>Thierry Nabeth wrote:</FONT>
</P>

<P><FONT SIZE=2>&gt; for instance:</FONT>
<BR><FONT SIZE=2>&gt; &lt;dtml-var meta_type&gt;</FONT>
<BR><FONT SIZE=2>&gt; does not return the correct type.</FONT>
</P>

<P><FONT SIZE=2>&lt;dtml-var &quot;meta_type&quot;&gt; works.&nbsp; You can also use things like</FONT>
<BR><FONT SIZE=2>&lt;dtml-in &quot;objectValues(['DTML Document'])&quot;&gt;</FONT>
</P>

<P><FONT SIZE=2>hope that helps,</FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>ethan mindlace fremen</FONT>
<BR><FONT SIZE=2>Zopatista Community Liason</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BFDF45.C6033660--