[IMP] remove unnecessary keys() calls

bzr revid: xmo@openerp.com-20131104125735-wtnngolx07755o1u
This commit is contained in:
Xavier Morel 2013-11-04 13:57:35 +01:00
parent a17a49e130
commit 3389198f81
2 changed files with 3 additions and 2 deletions

View File

@ -680,6 +680,7 @@ class view(osv.osv):
arch = self.read_combined(cr, uid, id_, fields=['arch'], context=context)['arch']
arch_tree = etree.fromstring(arch)
if 'lang' in context:
arch_tree = self.translate_qweb(cr, uid, id_, arch_tree, context['lang'], context)
self.distribute_branding(arch_tree)

View File

@ -219,7 +219,7 @@ def route(route, type="http", auth="user"):
configuration indicating the current database nor the current user.
"""
assert type in ["http", "json"]
assert auth in auth_methods.keys()
assert auth in auth_methods
def decorator(f):
if isinstance(route, list):
f.routes = route
@ -1025,7 +1025,7 @@ class Root(object):
url = url[: -1]
routing_map.add(routing.Rule(url, endpoint=mv))
modules_set = set(controllers_per_module.keys()) - set(['', 'web'])
modules_set = set(controllers_per_module) - set(['', 'web'])
# building all none methods
gen(['', "web"] + sorted(modules_set), True)
if not db: