proprio()._id() -> proprio().oid()

This commit is contained in:
Pierre-Elliott Bécue 2015-10-18 20:07:33 +02:00
parent 2860fe931c
commit 32e4416687

View file

@ -110,9 +110,9 @@ def traiter_factures(ldap, args):
controle_non.sort(cmp=lambda x, y: cmp(int(x['fid'][0]), int(y['fid'][0])), reverse=True)
sans_controle.sort(cmp=lambda x, y: cmp(int(x['fid'][0]), int(y['fid'][0])), reverse=True)
else:
controle_ok.sort(cmp=lambda x, y: cmp(int(x.proprio()._id()[0]), int(y.proprio()._id()[0])), reverse=True)
controle_non.sort(cmp=lambda x, y: cmp(int(x.proprio()._id()[0]), int(y.proprio()._id()[0])), reverse=True)
sans_controle.sort(cmp=lambda x, y: cmp(int(x.proprio()._id()[0]), int(y.proprio()._id()[0])), reverse=True)
controle_ok.sort(cmp=lambda x, y: cmp(int(x.proprio().oid()[0]), int(y.proprio().oid()[0])), reverse=True)
controle_non.sort(cmp=lambda x, y: cmp(int(x.proprio().oid()[0]), int(y.proprio().oid()[0])), reverse=True)
sans_controle.sort(cmp=lambda x, y: cmp(int(x.proprio().oid()[0]), int(y.proprio().oid()[0])), reverse=True)
# Menu principal
(code, tag) = dialog_interface.menu(