[FIX] broken call from Website.pagenew to website.new_page

bzr revid: xmo@openerp.com-20131126092138-a7xkm92d51d4rg3y
This commit is contained in:
Xavier Morel
2013-11-26 10:21:38 +01:00
parent f5236dfdb0
commit 5f99c7b7d1
+1 -1
View File
@@ -50,7 +50,7 @@ class Website(openerp.addons.web.controllers.main.Home):
def pagenew(self, path, noredirect=NOPE):
web = request.registry['website']
try:
path = web.new_page(request.cr, request.uid, path, request.context)
path = web.new_page(request.cr, request.uid, path, context=request.context)
except psycopg2.IntegrityError:
logger.exception('Unable to create ir_model_data for page %s', path)
request.cr.execute('ROLLBACK TO SAVEPOINT pagenew')