[Seaside-dev] filters initialization with request context?

Sebastian Sastre ssastre at seaswork.com
Sat Mar 7 20:44:14 UTC 2009


hi guys,
did you found convenient to initialize filters using the request context?
I'm making a filter to make the response to be solved inside a transaction and I
need to tell this transactional filter of the session in which database it has
to commit. The database is decided based on the subdomain of the request so it
would be convenient and I don't think this is a rare case.
I'm doing it by subclassifiying wasession and overriding responseForRequest:
setting the database there (if is not already), but doing that from there every
time feels kind of dumb.
cheers,
sebastian 



More information about the seaside-dev mailing list