From 5e8c837fb2316a18f4093b5bfce42182b1722573 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 31 May 2021 22:01:52 +0200 Subject: [PATCH] user_info: ajout arg format --- app/scodoc/ZScoUsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/ZScoUsers.py b/app/scodoc/ZScoUsers.py index 21bf83025..ec86bfa17 100644 --- a/app/scodoc/ZScoUsers.py +++ b/app/scodoc/ZScoUsers.py @@ -261,7 +261,7 @@ class ZScoUsers( security.declareProtected(ScoUsersAdmin, "user_info") - def user_info(self, user_name=None, user=None): + def user_info(self, user_name=None, user=None, format=None, REQUEST=None): """Donne infos sur l'utilisateur (qui peut ne pas etre dans notre base). Si user_name est specifie, interroge la BD. Sinon, user doit etre un dict. """ @@ -322,7 +322,7 @@ class ZScoUsers( # nomnoacc est le nom en minuscules sans accents info["nomnoacc"] = scu.suppress_accents(scu.strlower(info["nom"])) - return info + return scu.sendResult(REQUEST, info, name="user", format=format) def _can_handle_passwd(self, authuser, user_name, allow_admindepts=False): """true if authuser can see or change passwd of user_name.