On 06/11/2007, at 20:22, Mike Orr wrote: > > On 11/6/07, Humberto Diógenes <[EMAIL PROTECTED]> wrote: >> ### Existing project: >> URL: http://localhost:5000/location/index >> [...] >> KeyError: 'wsgiorg.routing_args' > > This is going to be a recurring problem with Pylons-dev. When > upgrading an app from Pylons 0.9.6 to 0.9.7, you have to add three > lines to middleware.py: > > [...] > > Downgrading, you have to remove these lines, because Pylons 0.9.6 > activates them implicitly. >
Thanks! It worked. Here goes the code with the right imports: # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) # Routing/Session/Cache Middleware (0.9.7 only, remove for 0.9.6) from routes.middleware import RoutesMiddleware from beaker.middleware import SessionMiddleware, CacheMiddleware app = RoutesMiddleware(app, config['routes.map']) app = SessionMiddleware(app, config) app = CacheMiddleware(app, config) >> ### New project: >> >> $ paster create -t pylons PylonsTest2 >> [...] >> OSError: [Errno 2] No such file or directory: '/Library/Frameworks/ >> Python.framework/Versions/2.4/lib/python2.4/site-packages/ >> Pylons-0.9.7dev_20071106-py2.4.egg/pylons/templates/default_project' >> > > It works for me (...) Maybe you got an incomplete update? No, the update was OK, the files are in the checkout. I copied them manually to Python site-packages and it worked. I think there's something wrong with the install scripts. When I ran "easy_install ." again, the templates were gone from site-packages. Anyway, the new expose() decorator worked! Thanks!!! (although it took a little to notice that BaseController was changed to DecoratedController :-) -- Humberto Diógenes http://humberto.digi.com.br --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
