[Zope-dev] Zope 2.5.0 Sessions & Testing

Chris McDonough chrism@zope.com
Tue, 08 Jan 2002 08:09:01 -0500


> Is it solved in Zope 3?

Zope3 is more modular, so probably.  Though I dont think
it's a goal.

> Never even knew that existed. Where's it documented? What
> does it do? What are
> the side effects?

"Zoper.test" as a side effect it commits a transaction.
It's documented in the dev guide as "ZPublisher.Zope",
sorry.

> Well, we're using makerequest, and the following code
> seems to be keeping the
> SESSION stuff working:
> 
> session = app.unrestrictedTraverse('/session_data_manager').getSessionData
> app.REQUEST.set_lazy('SESSION', session)
> 
> Is that the 'right thing' to do?

That looks about right...