On Tue, Apr 28, 2009 at 12:01 AM, Mike Orr <[email protected]> wrote: > > > It works, but that's a pain if you need to put your Pylons > authorization system around it.
It's not a real pain if you use repoze.who/what > As JonathanV said, Pylons is not > really structured to plug in mini-apps the way Django is. But you can > plug in WSGI applications via Paste Composite, or by a controller stub > module, or you can return it in a controller action. Pylons apps can > be embedded if you instantiate them with ``full_stack=False``, but you > may need to adjust middleware.py because I'm not sure the default is > ideal. > > WSGI is a rather clunky protocol. It works well for its core case of > connecting an arbitrary application to an arbitrary HTTP server. It > works OK for middleware although the API is primitive. You can use > webob.Request/Response in your middleware to make it easier to work > with. > > At PyCon, some of us experimented with a full plugin system (Zope > Component Architecture) as used in repoze.BFG. It's too early to tell > whether it would be feasable for a Pylons-like framework (and most of > the developers are too busy to pursue it right now). But the > theoretical idea would be to move some of the middleware to it, use it > for part of Pylons internal configuration and environment.py, and > perhaps expose it to the application developer for customization. And > this may in turn allow for greater interoperability between Pylons, > TG, BFG, and other external software, and simplify the configuration > systems that they all use. (Deployment configuration a la > development.ini would remain separate, maybe, depending on the > framework developer's/application developer's desire.) > ZCA can be a good thing, but it also can be a mess. When you have too much interfaces and/or zcml in your code it can take a few hours to retrieve where a bug came from. Having a more advanced plugin system can be a good thing but what i like in pylons is that it's a *very* simple framework. 1 url => 1 method. Please, keep it simple. > -- > Mike Orr <[email protected]> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
