From 6110b477aa3640443f9c3b47dffb6060b2979b5c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 31 May 2021 17:55:43 +0200 Subject: [PATCH] user_info: ajout arg format --- ZScoUsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZScoUsers.py b/ZScoUsers.py index 21bf83025..ec86bfa17 100644 --- a/ZScoUsers.py +++ b/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.