Christopher Lenz wrote:
Hi,
does Trac have some session mechanism that can story any kind of object (i.e.: not stored in DB)? I need this for an OpenID auth plugin I'm currently writing.
The OpenID/Yadis library wants to store some objects in a session  while
authenticating. The session object must have a dict-lict interface. Can someone
please help me?

Why should the session data *not* be stored in the DB?

The Trac `req.session` object provides a dict-like interface, and how the data is stored should not be of concern AFAIK (it is stored in the DB).

If it's stored in the DB then objects must be serialized. That would probably
work...
The OpenID library just needs a way to store an arbitrary object in the session.

Bye,
Waldemar Kornewald


_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to