[Zope] reading cookies from external methods

Andreas Jung lists at zopyx.com
Fri Mar 31 14:11:05 EST 2006



--On 31. März 2006 11:04:59 -0800 Jed Parsons <jedp at ilm.com> wrote:
> Can I get the same cookie without requiring boty my dtml methods and my
> other scripts and external methods that call foo() to be able to pass the
> REQUEST object?
>
>

The REQUEST object is usually an attribute of the current context object.
Means you can access it at context.REQUEST, here.REQUEST ...depending where 
you need to access it. Inside an external method you can use self.REQUEST
as long as the first argument of the external method is called 'self'.

-aj

    -----------------------------------------------------------------------
   -   Andreas Jung            ZOPYX Ltd. & Co KG                        -
  -   E-mail: info at zopyx.com   Web: www.zopyx.com, www.zopyx.de         -
   -----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060331/171d15e4/attachment.bin


More information about the Zope mailing list