I want my pylons app to be middleware for another. I've got the
middleware end working, but I am loading the 'sub'-app in a bad way,
because it is overwriting pylons.config. Is it possible to have two
pylons apps running like this?
Here's what i'm doing in the init of my middleware:
def __init__(self, app, config):
self.app = app
self.sub_app = loadapp('config:%s' % config['__file__'],
name='sub_app')
Using loadapp overwrites pylons.config. Which is not good : )
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---