Revision 018ae30b lib/opcodes.py

b/lib/opcodes.py
154 154
#: Attribute name for dependencies
155 155
DEPEND_ATTR = "depends"
156 156

  
157
#: Attribute name for comment
158
COMMENT_ATTR = "comment"
159

  
157 160

  
158 161
def _NameToId(name):
159 162
  """Convert an opcode class name to an OP_ID.
......
448 451
    (DEPEND_ATTR, None, _BuildJobDepCheck(True),
449 452
     "Job dependencies; if used through ``SubmitManyJobs`` relative (negative)"
450 453
     " job IDs can be used"),
454
    (COMMENT_ATTR, None, ht.TMaybeString,
455
     "Comment describing the purpose of the opcode"),
451 456
    ]
452 457

  
453 458
  def __getstate__(self):

Also available in: Unified diff