git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge from trunk
[plcapi.git]
/
PLC
/
Methods
/
VerifyPerson.py
diff --git
a/PLC/Methods/VerifyPerson.py
b/PLC/Methods/VerifyPerson.py
index
fd4adb7
..
9dd784b
100644
(file)
--- a/
PLC/Methods/VerifyPerson.py
+++ b/
PLC/Methods/VerifyPerson.py
@@
-46,14
+46,14
@@
class VerifyPerson(Method):
# Get account information
persons = Persons(self.api, [person_id_or_email])
if not persons:
# Get account information
persons = Persons(self.api, [person_id_or_email])
if not persons:
- raise PLCInvalidArgument, "No such account
"
+ raise PLCInvalidArgument, "No such account
%r"%person_id_or_email
person = persons[0]
if person['peer_id'] is not None:
person = persons[0]
if person['peer_id'] is not None:
- raise PLCInvalidArgument, "Not a local account
"
+ raise PLCInvalidArgument, "Not a local account
%r"%person_id_or_email
if person['enabled']:
if person['enabled']:
- raise PLCInvalidArgument, "Account
must be new (disabled)"
+ raise PLCInvalidArgument, "Account
%r must be new (disabled)"%person_id_or_email
# Get the primary site name
person_sites = Sites(self.api, person['site_ids'])
# Get the primary site name
person_sites = Sites(self.api, person['site_ids'])