[Zope] bad expression evaluation

seb bacon seb@jamkit.com
Fri, 10 Nov 2000 19:15:17 +0000


I'm trying to compare two page titles, using this code:

<dtml-call "REQUEST.set('my_title',get_page_title)">
<dtml-in "PARENTS[1].objectValues(['Folder'])">
  &dtml-my_title; : &dtml-get_page_title
  <dtml-if "my_title!=get_page_title">
      <dtml-var title_or_id>
  </dtml-if>
</dtml-in>

Now I can see on the page that my_title and get_page_title are the same.  I have also tried comparing _.str(my_title) and _.str(get_page_title) just to make sure I was comparing strings.  But the if clause always evaluates true.  Any ideas?

cheers,
seb.