Re: [Zope] reading cookies from external methods

2006-03-31 Thread Jed Parsons
Awesome thank you, j Tino Wildenhain wrote: Jed Parsons wrote: Oh, cool. That's kind of magical. :) It looks like I can't get the RESPONSE that way, so if I want to do a RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE as before, yes? No, RESPONSE is a subobject of R

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Tino Wildenhain
Jed Parsons wrote: > > Oh, cool. That's kind of magical. :) > > It looks like I can't get the RESPONSE that way, so if I want to do a > RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE > as before, yes? No, RESPONSE is a subobject of REQUEST - see python scripts as an exam

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Jed Parsons
e: - Original Message - From: "Jed Parsons" <[EMAIL PROTECTED]> To: Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Patrick Decat
ge - From: "Jed Parsons" <[EMAIL PROTECTED]> > > To: > > Sent: Friday, March 31, 2006 2:04 PM > > Subject: [Zope] reading cookies from external methods > > > > > >> > >> This is probably a silly question, but how does one read cook

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Jed Parsons
arsons" <[EMAIL PROTECTED]> To: Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable bot

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Andreas Jung
--On 31. März 2006 11:04:59 -0800 Jed Parsons <[EMAIL PROTECTED]> 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 curren

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Jonathan
- Original Message - From: "Jed Parsons" <[EMAIL PROTECTED]> To: Sent: Friday, March 31, 2006 2:04 PM Subject: [Zope] reading cookies from external methods This is probably a silly question, but how does one read cookies from an external method without passin

Re: [Zope] reading cookies from external methods

2006-03-31 Thread Andrew Milton
+---[ Jed Parsons ]-- | | This is probably a silly question, but how does one read cookies from an | external method without passing REQUEST to the method? | | The method should be callable both from dtml and from other external | methods. | | I know I can do this: | |

[Zope] reading cookies from external methods

2006-03-31 Thread Jed Parsons
This is probably a silly question, but how does one read cookies from an external method without passing REQUEST to the method? The method should be callable both from dtml and from other external methods. I know I can do this: def foo(REQUEST): cookie = REQUEST.get('some_cookie')