[Zope] SESSION and REQUEST variables
Chris McDonough
chrism@zope.com
Tue, 12 Mar 2002 20:27:36 -0500
While I'm not clear on exactly what you're doing (thus my answer might
be less than helpful), I think you can get at your variable by doing
something like (for instance):
<span tal:define="myob python: request.SESSION['myob']">
...
</span>
.. please proceed with telling me how that doesn't help. ;-)
Kevin Smith wrote:
> I am storing a TransientObject based instance in a SESSION variable.
> What are my options for getting the REQUEST variable when calling
> methods on this instance from a page template? Looking at self.REQUEST
> doesn't seem to work and using 'python:obj.getData(request)' is very
> verbose. I would like 'obj/getData' to work, but it doesn't.
>
> Kevin Smith
> Kevin.Smith@theMorgue.org
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"