On Wed, 2009-09-02 at 11:59 -0700, Mike Orr wrote: > On Wed, Sep 2, 2009 at 11:06 AM, Iain Duncan<[email protected]> wrote: > > > > On Wed, 2009-09-02 at 01:28 -0700, Mike Orr wrote: > >> On Tue, Sep 1, 2009 at 11:03 PM, Iain Duncan<[email protected]> wrote: > >> > > >> > Wondering what the sensible way of calling an external wsgi app from > >> > pylons is if we *want* the app to be instantiated at server startup. I > >> > noticed that when I do > >> > > >> > AdminController = DramApp( blah blah) > >> > > >> > in my dummy controller file, DramApp doesn't get initialized until the > >> > first call to the controller. I guess that's ok, but I'm somewhat leery > >> > of the ZCA registry not being built until it gets requested. Thoughts? > >> > >> Put it on 'g'? > > > > Thanks for the suggestions guys, I'll try them out. Still in the > > jiggling things around stage incorporating the ZCA, but I have to say > > now that I've wrapped my head around it, I sure like the zope > > multi-adapter pattern. > > Are you using Pype in this?
Not yet, thought that is on the todo list. In this case, it's a standalone wsgi crud app that happens to use bfg, I was making it as a pure webob thing and then discovered that the bfg dispatcher and the zope3 view system would do a whole bunch of things I was doing badly by myself. But the app ( called Dram ) is meant to be usable from pylons as simply as possible, so it's the integration that I'm testing. While I really like the bfg system for restful crud operations, I like the overall Pylons dev environment better for making the main application. I sure would like to do the whole thing on a hybrid in the future though, zope 3 views and chameleon are pretty sweet. =) Iain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
