Hi
On Nov 6, 11:12 am, Zeynel <azeyn...@gmail.com> wrote: > In the Pyramid websitehttp://docs.pylonshq.com/pyramid/dev/narr/firstapp.html > they give a Hello World App "configured imperatively." > > I understood this to be "configured without object orientation". Is > this correct? Not really, it just means its configured directly through code, rather than indirectly via import time configuration. It would be the same as creating db.Models by doing something like mymode.addProperty(name,propertyType). Rather than at class definition time. I am not sure its any less object oriented, just moves the point in time where the definition comes together ;-) > > And is it possible to work in webapp Framework in imperative mode? > Yep > For instance, would it be possible to write this > examplehttp://code.google.com/appengine/kb/commontasks.html#update > imperatively without > > substituting a function for the class > UpdateComment(BaseRequestHandler): Other frameworks don't look like webepp based request handlers. I use bobo and bfg in differnt projects, and because of the way they work, the views are declared quite differently. Bobo for instance can use imperitive of class based view/route definitions. See http://bobo.digicool.com/more.html#configuring-routes-in-python for instance, or with bfg http://docs.repoze.org/bfg/current/narr/configuration.html#imperative-configuration Here is a snippet of bfg 1.2.x based main handler. (All urls not matching specific static handlers etc.. will be handled by this.) config = Configurator(package=psc,renderers=[]) config.setup_registry(root_factory=get_root) config.hook_zca() config.begin() config.load_zcml('configure_cf.zcml') config.end() logging.debug('configuration done') application = config.make_wsgi_app() application = SessionMiddleware(application,session_opts) run_wsgi_app(application) Hope this gives you some ideas. T -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.