[Zope] Checking for Property Presence

Michel Pelletier michel@digicool.com
Mon, 20 Dec 1999 16:17:19 -0500


> -----Original Message-----
> From: rgines@purina.com [mailto:rgines@purina.com]
> 
> <TABLE ALIGN="CENTER">
> <dtml-tree branches_expr="objectValues(['DTML Document'])">
>    <dtml-if "AUTHENTICATED_USER.has_permission('View',REQUEST)">
> ==>      <dtml-how do I check if the property exists "StaffLastName">
> <====
>          <tr><td><A HREF="<dtml-var absolute_url>">
>              <IMG SRC="<dtml-var icon>" BORDER=0></a></td>
>          <td><dtml-var title_or_id></td>
>       </dtml-if>
>    </dtml-if>
> </dtml-tree>
> </TABLE>
> 
> 
> As a tangent, is there a way to define a new objectValue type 
> within a Zope
> product
> without writing python source?

You can create a ZClass that subclasses Folder, and then add an
objectValues DTML Method (or Python method, now that they are part of
Zope).  The 

-Michel