...And evidently I get new problem: how to access session from that
CustomURLParser.__call__() method defined in middleware?
I have:
if not vars().has_key('model'):
import myproject.model as model
if not vars().has_key('session'):
from pylons import session
Works perfectly for model but not for session: 'TypeError: No object
(name: Session) has been registered for this thread'.
I'm playing with SessionMiddleware but with no result.
On Dec 13, 5:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> The problem solved by custom StaticURLParser's child with __call__()
> method overrided in middleware. Thanks, Matt and Ches!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---