checked set of fields that may be passed
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 8 Feb 2007 19:34:03 +0000 (19:34 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 8 Feb 2007 19:34:03 +0000 (19:34 +0000)
PLC/Methods/AddPersonKey.py
PLC/Methods/UpdateNodeNetwork.py

index 0bba3a1..3c7fc97 100644 (file)
@@ -5,7 +5,7 @@ from PLC.Keys import Key, Keys
 from PLC.Persons import Person, Persons
 from PLC.Auth import Auth
 
-can_update = lambda (field, value): field not in ['key_id']
+can_update = lambda (field, value): field in ['key_type','key']
 
 class AddPersonKey(Method):
     """
index 244647c..3936e3d 100644 (file)
@@ -6,7 +6,7 @@ from PLC.NodeNetworks import NodeNetwork, NodeNetworks
 from PLC.Auth import Auth
 
 can_update = lambda (field, value): field not in \
-             ['nodenetwork_id']
+             ['nodenetwork_id','node_id']
 
 class UpdateNodeNetwork(Method):
     """