On Feb 11, 2009, at 12:37 PM, Audrius Kažukauskas wrote:
Having said that, there's one issue I've encountered while integratingrepoze.what: model.meta.Session was imported in config/middleware.py at the time when model.init_model() hasn't been called yet, so Session wasstill None and stayed as that in the scope of middleware.py even after init_model() initialization.As a workaround I've modified Session init code according to example at<http://pylonshq.com/pasties/1046>, but now I see that it's enough to import Session *after* load_environment() call in middleware.py.
It should be noted that Pylons dev version has this change applied so that Session will not be None at import time to avoid these issues. I plan on putting out RC5 today which has this fix in it.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
