Revision a19a6326

b/lib/build/sphinx_ext.py
45 45
import ganeti.rapi.rlib2 # pylint: disable=W0611
46 46

  
47 47

  
48
COMMON_PARAM_NAMES = map(compat.fst, opcodes.OpCode.OP_PARAMS)
48
def _GetCommonParamNames():
49
  """Builds a list of parameters common to all opcodes.
50

  
51
  """
52
  names = set(map(compat.fst, opcodes.OpCode.OP_PARAMS))
53

  
54
  # The "depends" attribute should be listed
55
  names.remove(opcodes.DEPEND_ATTR)
56

  
57
  return names
58

  
59

  
60
COMMON_PARAM_NAMES = _GetCommonParamNames()
49 61

  
50 62
#: Namespace for evaluating expressions
51 63
EVAL_NS = dict(compat=compat, constants=constants, utils=utils, errors=errors,

Also available in: Unified diff