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
(*) Peer has new fields person_ids and site_ids
[plcapi.git]
/
PLC
/
Methods
/
AddPeer.py
diff --git
a/PLC/Methods/AddPeer.py
b/PLC/Methods/AddPeer.py
index
79982f5
..
ebb944d
100644
(file)
--- a/
PLC/Methods/AddPeer.py
+++ b/
PLC/Methods/AddPeer.py
@@
-9,12
+9,12
@@
from PLC.Auth import Auth
from PLC.Peers import Peer, Peers
from PLC.Peers import Peer, Peers
-can_update = lambda(k,v): k in ['peername','peer_url','person_id']
+can_update = lambda(k,v): k in ['peername','peer_url','
auth_
person_id']
class AddPeer (Method):
"""
Creates a peer entry in the database and returns its id
class AddPeer (Method):
"""
Creates a peer entry in the database and returns its id
- Temporarily, requires to provide a
person_id
+ Temporarily, requires to provide a
n auth_
person_id
this is used to store the credentials that we'll
use when connecting to the peer's API
"""
this is used to store the credentials that we'll
use when connecting to the peer's API
"""