[Zope] Comparing directories & dumb question

BZ bz@bwanazulia.com
Thu, 5 Dec 2002 13:33:03 -0500 (EST)


I am trying to write a snippet of code that will figure out what main
directory you are in and display a different banner based on that. Should
be simple as heck, well... it has been driving me crazy. Here is what I
have and I know I am missing one stupid line of code or something.

dtml-let section="_.string.split(_.string.lower(_.string.split(URL,
'/')[3]), '.')">
  <dtml-call "REQUEST.set('section', section)">
</dtml-let>

<dtml-if section>

<dtml-if "section=='folder_name'">

  show new header

<dtml-else>

 do something else

</dtml-if>

</dtml-if section>

And this is the output and why it won't match which I think is because the
first one is in a list. (??!)

['folder_name'] = folder_name

Any help?

BZ