[FIX] garbage
WTF is the point of using dict.get when you're going to blow up the next freaking line because you don't handle it returning None? bzr revid: xmo@openerp.com-20130903144738-jygw2aepjn6sd2tb
This commit is contained in:
@@ -102,7 +102,7 @@ class Website(openerp.addons.web.controllers.main.Home):
|
||||
|
||||
@http.route('/page/<path:path>', type='http', auth="admin")
|
||||
def page(self, path, **kwargs):
|
||||
website = request.registry.get("website")
|
||||
website = request.registry['website']
|
||||
values = website.get_rendering_context({
|
||||
'path': path
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user