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
work in progress - passes simple tests
[plcapi.git]
/
PLC
/
Methods
/
UpdateNodeTagType.py
diff --git
a/PLC/Methods/UpdateNodeTagType.py
b/PLC/Methods/UpdateNodeTagType.py
index
952b3ff
..
b0831ba
100644
(file)
--- a/
PLC/Methods/UpdateNodeTagType.py
+++ b/
PLC/Methods/UpdateNodeTagType.py
@@
-10,7
+10,7
@@
from PLC.NodeTagTypes import NodeTagType, NodeTagTypes
from PLC.Auth import Auth
can_update = lambda (field, value): field in \
from PLC.Auth import Auth
can_update = lambda (field, value): field in \
- ['name', 'description', 'category', 'min_role_id']
+ ['
tag
name', 'description', 'category', 'min_role_id']
class UpdateNodeTagType(Method):
"""
class UpdateNodeTagType(Method):
"""
@@
-27,7
+27,7
@@
class UpdateNodeTagType(Method):
accepts = [
Auth(),
Mixed(NodeTagType.fields['node_tag_type_id'],
accepts = [
Auth(),
Mixed(NodeTagType.fields['node_tag_type_id'],
- NodeTagType.fields['name']),
+ NodeTagType.fields['
tag
name']),
node_tag_type_fields
]
node_tag_type_fields
]