Accessing ISession from formless autocallable
An autocall gets (self, request...), but not context. If I want to set session variables (as discussed in the previous exchange), how can I do it without ctx? Thanks!
autocallables don't actually automatically get request. presumably you have something like "request=annotate.Request()" in your autocallable definition. Just change that to "context=annotate.Context()". On Wed, 15 Dec 2004 01:03:51 -0800, Michael Wilson <michael.wilson@gmail.com> wrote:
An autocall gets (self, request...), but not context. If I want to set session variables (as discussed in the previous exchange), how can I do it without ctx?
Thanks!
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
-- Twisted | Christopher Armstrong: International Man of Twistery Radix | -- http://radix.twistedmatrix.com | Release Manager, Twisted Project \\\V/// | -- http://twistedmatrix.com |o O| | Founding Member, Hobart Hacking Society w----v----w-+ -- http://hackingsociety.org/chapters/hash
On Wed, Dec 15, 2004 at 01:03:51AM -0800, Michael Wilson wrote:
An autocall gets (self, request...), but not context. If I want to set session variables (as discussed in the previous exchange), how can I do it without ctx?
add ctx = annotate.Context() as parameter, as far as I can tell request is superflous since you can get to the request through inevow.IRequest(context), not sure why it's possible to return a request too and not only a context.
On Wed, 15 Dec 2004 12:30:48 +0100, Andrea Arcangeli <andrea@cpushare.com> wrote:
add ctx = annotate.Context() as parameter, as far as I can tell request is superflous since you can get to the request through inevow.IRequest(context), not sure why it's possible to return a request too and not only a context.
Passing the request is going to be deprecated for this very reason. -- Valentino Volonghi aka Dialtone Now running MacOS X 10.3.6 Blog: http://vvolonghi.blogspot.com Home Page: http://xoomer.virgilio.it/dialtone/
participants (4)
-
Andrea Arcangeli
-
Christopher Armstrong
-
Michael Wilson
-
Valentino Volonghi