I'd like to have TG handle a few URL dispatches for a large webapp that
is a predominantly mod_perl ( there are some items that are handled via
php. everyone talks using a shared session database and serializes
info via YAML/JSON. )
I was thinking that I'd probably override the TG session store - but I
could conceivably just pull in the webapp session data into a new
SQLObject, and just access it directly.
my gut feeling though, is that extending TG to use a session system
that is standardized with perl/php/whatever else would be better
though, as it could be more seamless for production use
>
> can anyone point me to the session management components in TurboGears
>
Take a look at the sessionfilter.py at thirdparty/cherrypy/cherrypy/
filters and how CherryPy filters are implemented, specially the
PostgreSQL storage one.
> I'd like to have TG handle a few URL dispatches for a large webapp
> that
> is a predominantly mod_perl ( there are some items that are handled
> via
> php. everyone talks using a shared session database and serializes
> info via YAML/JSON. )
>
> I was thinking that I'd probably override the TG session store - but I
> could conceivably just pull in the webapp session data into a new
> SQLObject, and just access it directly.
>
This could be a little bit tricky as you're outside TG's implicit db
transaction machinery. You'd have to begin and commit/rollback any
transaction manually and cross your fingers ;)
> my gut feeling though, is that extending TG to use a session system
> that is standardized with perl/php/whatever else would be better
> though, as it could be more seamless for production use
Yep, this looks like a better approach
Alberto