Revision b95479a5 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
151 | 151 |
"INSTANCE_": "I_", |
152 | 152 |
} |
153 | 153 |
|
154 |
#: Attribute name for dependencies |
|
155 |
DEPEND_ATTR = "depends" |
|
156 |
|
|
154 | 157 |
|
155 | 158 |
def _NameToId(name): |
156 | 159 |
"""Convert an opcode class name to an OP_ID. |
... | ... | |
422 | 425 |
("debug_level", None, ht.TOr(ht.TNone, ht.TPositiveInt), "Debug level"), |
423 | 426 |
("priority", constants.OP_PRIO_DEFAULT, |
424 | 427 |
ht.TElemOf(constants.OP_PRIO_SUBMIT_VALID), "Opcode priority"), |
425 |
("depends", None, ht.TOr(ht.TNone, ht.TListOf(_T_JOB_DEP)),
|
|
428 |
(DEPEND_ATTR, None, ht.TOr(ht.TNone, ht.TListOf(_T_JOB_DEP)),
|
|
426 | 429 |
"Job dependencies"), |
427 | 430 |
] |
428 | 431 |
|
Also available in: Unified diff