[Zope3-dev] Sessions

Stuart Bishop zen@shangri-la.dropbear.id.au
Thu, 24 Jul 2003 13:21:48 +1000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Thursday, July 24, 2003, at 04:15  AM, Marcus J. Ertl wrote:

> Because I have some problems with workflows, I decided to do some work
> on membership and something like "usersettings". But I have same very
> silly questions:
>
> - How do I use sessions?

You don't yet.

> - When start's a session?
> - What is a DataManager, and how do I get one for:
>   registerDataManager(self, name, dataManager)

A DataManager is currently only an interface, with no implementations.

I've been discussing sessions with Jim Fulton and Chris McDonough, as
they are needed to complete the wizard code. Current thinking
is you will get a session data object via request.session['object'].
This would be equivalent to something like:
	getUtility(context, ISessionDataManager, 'object').getDataObject(
         getService(context, 'Session').getSessionId(request)
         )

- -- 
Stuart Bishop <zen@shangri-la.dropbear.id.au>
http://shangri-la.dropbear.id.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE/H1DQh8iUz1x5geARAhHRAJ9fpI98vqqd3+dww/bkL73VI1WX9QCdF2l8
9Nks11K5gOgWD2sQtYvnzdw=
=ruZg
-----END PGP SIGNATURE-----