On Jun 28, 2009, at 5:24 PM, Thomas G. Willis wrote:
>> The inner application is trying to find the controller in the outer
>> app's controller path? They should have two separate 'config's, I
>> would think. You're getting into the rare case where two Pylons apps
>> are sharing the same process. The globals (pylons.config, etc) are
>> StackedObjectProxies for just this reason, so that each application
>> can push the correct objects onto the globals while it's active.
>> Perhaps this isn't working right. Since you can't get to a
>> controller, the only place to test this definitively would be to put
>> logging statements in pylons.wsgiapp.PylonsApp.find_controller().
>> You
>> could put something like this in:
The request specific globals are Stacked object proxies to resolve the
issue, however if they have the same config, its possible that since
the loading of the app occurs *before* any request is actually
received, they both end up using the same global config object thats
created at load-time. I believe that is what is occurring in this case.
> yep it seems they are using the same config. I put the logging in
> wsgiapp.py in an except clause....
...
> whereas in my controller I have
>
> #helloembed.py
> app = loadapp("config:/home/twillis/projects/twsgi/src/embedded/
> development.ini")
>
> HelloembedController = app
I'll have to try this out myself, but I'm pretty sure its an issue of
using the same app-setup config. If that is what is happening, I'll
look into migrating Pylons application config to a format being
explored in Pypes a bit ahead of schedule so that we can make Pylons
apps nest-able in the same process.
Cheers,
Ben
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---