Commit a6abcaf5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update to change list(dct.items()) to dct.items().

parent 4fc4d4fa
......@@ -105,7 +105,7 @@ def dbui_conf():
# build the dictionary required by Ext.direct
# containing the definition of the remote procedure
for k, f in list(directSvc.procedures.items()):
for k, f in directSvc.procedures.items():
action, method = k.split(".")
if action == DBUI:
......
......@@ -262,7 +262,7 @@ class DbSvc(BaseSvc):
di = {}
db = current.globalenv["db"]
for field, val in list(fields.items()):
for field, val in fields.items():
# NOTE: checks are not applied to foreign fields since
# consistency is garanty by the interface via the use of
......
......@@ -114,7 +114,7 @@ def dummy_row(table, val=""):
if is_foreign_field(field):
k_tablename, k_fieldname, k_id = get_foreign_field(field)
if k_tablename not in row:
for k, v in list(dummy_row(db[k_tablename], val=val).items()):
for k, v in dummy_row(db[k_tablename], val=val).items():
if k not in row:
row[k] = v
......@@ -158,7 +158,7 @@ def encode_validator_errors(error):
"""
di = {}
for k, v in list(error.items()):
for k, v in error.items():
tablename, fieldname = decode_field(k)
di[k] = "%s %s" % (current.T(fieldname.title()), v)
return di
......@@ -393,7 +393,7 @@ def get_id(table, **kwargs):
"""
query = None
for k, v in list(kwargs.items()):
for k, v in kwargs.items():
el = table[k] == v
if query:
......
......@@ -203,7 +203,7 @@ class Selector(Storage):
tablename = self._tablename
tablename = tablename[0].upper() + tablename[1:]
for k, v in list(current.request.vars.items()):
for k, v in current.request.vars.items():
if k.startswith(tablename) and len(v):
data.append("%s=%s" % (k, v))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment