[Zope] Setting title in an external method

Michel Pelletier michel@digicool.com
Wed, 08 Mar 2000 10:56:01 -0800


Greg Ward wrote:
> 
> Hi all --
> 
> A common idiom around here is to use an external method to process a
> form and, if an error that the user can't fix occurs -- eg. you can't
> view such-and-such an object because it doesn't exist, or you don't have
> privileges -- use "return" to show them the contents of a DTML method
> that explains the problem.
> 
<snip>

>   * set some magical attribute of 'self' or 'RESPONSE' in the external
>     method; I tried "RESPONSE.setHeader ('Title', 'My Title')", but
>     that didn't work

Try just REQUEST.set('title', 'Foo')

-Michel