Commit e2b88a8b authored by Jérome Perrin's avatar Jérome Perrin

configure possible values

parent 803b0af4
...@@ -26,6 +26,9 @@ schema = { ...@@ -26,6 +26,9 @@ schema = {
"name": "Distribution Type", "name": "Distribution Type",
"description": "The distribution type, one of Fixed, Exp, Normal", "description": "The distribution type, one of Fixed, Exp, Normal",
"type": "string", "type": "string",
"choice": ([["Fixed", "Fixed"],
["Exp", "Exp"],
["Normal", "Normal"]]),
"_class": "Dream.Property", "_class": "Dream.Property",
"_default": "Fixed" "_default": "Fixed"
}, },
...@@ -81,8 +84,10 @@ schema = { ...@@ -81,8 +84,10 @@ schema = {
"id": "operationType", "id": "operationType",
"type": "string", "type": "string",
"name": "Operation Type", "name": "Operation Type",
"choice": [["Auto", "MT-Load-Setup"],
["Manual", "MT-Load-Processing"]],
"_class": "Dream.Property", "_class": "Dream.Property",
"_default": "Processing" "_default": "MT-Load-Processing"
}, },
"isDummy": { "isDummy": {
"id": "isDummy", "id": "isDummy",
...@@ -96,6 +101,7 @@ schema = { ...@@ -96,6 +101,7 @@ schema = {
"name": "Scheduling Rule", "name": "Scheduling Rule",
"description": "Scheduling Rule, one of %s" % (" ".join( "description": "Scheduling Rule, one of %s" % (" ".join(
Queue.getSupportedSchedulingRules())), Queue.getSupportedSchedulingRules())),
"choice": [(rule, rule) for rule in Queue.getSupportedSchedulingRules()],
"_class": "Dream.Property", "_class": "Dream.Property",
"_default": "FIFO" "_default": "FIFO"
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment