[FIX] broken call from Website.pagenew to website.new_page
bzr revid: xmo@openerp.com-20131126092138-a7xkm92d51d4rg3y
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user