[Zope] objectValues type?

Richard Lanham rlanham@speakeasy.net
Sun, 5 Nov 2000 15:55:25 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C04740.CFD69700
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I have this simple tree:

<dtml-tree branches=3D"objectValues" skip_unauthorized=3D"1">
    <input type=3D"checkbox" name=3D"delItems:list" VALUE=3D"<dtml-var =
id>">
    <a target=3Dmain href=3D"&dtml-absolute_url;"><dtml-var =
title_or_id></a>
 </dtml-tree>

The anchor's target is main. But it if it is a Folder I want the target =
to be self.

And I want to skip some items.

How do I return the objectType (eg Folder, Document, Method) so I can =
alter the anchor, and/or object Properties that I might set to make =
other decisions?

Thanks,
Richard



------=_NextPart_000_0013_01C04740.CFD69700
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have this simple tree:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-tree branches=3D"objectValues" =

skip_unauthorized=3D"1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;input =
type=3D"checkbox"=20
name=3D"delItems:list" VALUE=3D"&lt;dtml-var =
id&gt;"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;a=20
target=3Dmain href=3D"&amp;dtml-absolute_url;"&gt;&lt;dtml-var=20
title_or_id&gt;&lt;/a&gt;<BR>&nbsp;&lt;/dtml-tree&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The anchor's target is main. But it if =
it is a=20
Folder I want the target to be self.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And I want to skip some =
items.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How do I return the objectType (eg =
Folder,=20
Document, Method) so I can alter the anchor, and/or object Properties =
that I=20
might set to make other decisions?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Richard</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0013_01C04740.CFD69700--