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
add backward compatible SliceGetTicket and SliceTicketGet functions for Emulab during...
[plcapi.git]
/
PLC
/
SliceAttributeTypes.py
diff --git
a/PLC/SliceAttributeTypes.py
b/PLC/SliceAttributeTypes.py
index
4fa0ff8
..
6aa4baa
100644
(file)
--- a/
PLC/SliceAttributeTypes.py
+++ b/
PLC/SliceAttributeTypes.py
@@
-22,6
+22,11
@@
class SliceAttributeType(Row):
'min_role_id': Parameter(int, "Minimum (least powerful) role that can set or change this attribute"),
}
'min_role_id': Parameter(int, "Minimum (least powerful) role that can set or change this attribute"),
}
+ # for Cache
+ class_key = 'name'
+ foreign_fields = ['description','min_role_id']
+ foreign_xrefs = []
+
def validate_name(self, name):
if not len(name):
raise PLCInvalidArgument, "Slice attribute type name must be set"
def validate_name(self, name):
if not len(name):
raise PLCInvalidArgument, "Slice attribute type name must be set"