forked from ScoDoc/ScoDoc
user_info: ajout arg format
This commit is contained in:
parent
c3e5a5d188
commit
6110b477aa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user