Hi all

I realize it's probably going to turn out to be my mistake
all along .. anyway, further testing shows that this works::

    <dtml-call "RESPONSE.redirect(
       DestinationURL()+'/manage_workspace')">

but this::

  <dtml-if DestinationURL>
    <dtml-call "RESPONSE.redirect(
       DestinationURL()+'/manage_workspace')">
  </dtml-if>

generates a::

  Error Type: TypeError
  Error Value: call of non-function (type string)

with traceback ending::

  File C:\programs\ZopeDev\lib\python\DocumentTemplate\DT_Util.py, line 335,
in eval
    (Object: RESPONSE.redirect(
         DestinationURL()+'/index_html'))
    (Info: DestinationURL)
  File &lt;string&gt;, line 0, in ?
  TypeError: (see above)

What difference does the <dtml-if> make to DestinationURL?

-- 
Jean Jordaan       --    technical writer    --
Mosaic Software    --    Zope 2.1.6 on WinNT and W2K

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to