[Zope] if comparsion problem

Oliver Wrede owrede@khm.de
Fri, 25 Feb 2000 16:52:45 +0100


I am using this simple code to make a little navigation bar

<dtml-call "REQUEST.set('localid',id)">

<dtml-in "PARENTS[0].objectValues(['DTML Document'])">
   <dtml-unless "title == ''">
      <dtml-if "localid == id">
         <p><b><dtml-var title_or_id></b></p>
      <dtml-else>
         <p><a href="<dtml-var id>"><dtml-var title_or_id></a></p>
      </dtml-if>
   </dtml-unless>
</dtml-in>


It is intended that the title of the current page is bolded instead of
linked. Unfortuneatly the <dtml-if "localid == id"> does never seem to
match!

When I insert a control output like this:

   <p>'<dtml-var id>':'<dtml-var localid>'</p>


I can _see_ that there should be a match! I get two identical strings.

So what did I miss?


Oliver


.. Oliver Wrede
.. owrede@khm.de

.. Academy of Media Arts, Cologne
.. Peter-Welter-Platz 2 . 50676 Koeln, Germany
.. http://www.khm.de
.. ICQ# 6580315
.. PGP 6.0 Fingerprint:
.. 922C FFA2 9A07 5B8E CB2A  10A2 C370 6A62 2232 196C