Package ganeti :: Module opcodes :: Class _AutoOpParamSlots
[hide private]
[frames] | no frames]

Type _AutoOpParamSlots

source code


Meta class for opcode definitions.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(mcs, name, bases, attrs)
Called when a class should be created.
source code

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __instancecheck__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_GetSlots(mcs, attrs)
Build the slots out of OP_PARAMS.
source code
Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__new__(mcs, name, bases, attrs)

source code 

Called when a class should be created.

Parameters:
  • mcs - The meta class
  • name - Name of created class
  • bases - Base classes
  • attrs (dict) - Class attributes
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

_GetSlots(mcs, attrs)
Class Method

source code 

Build the slots out of OP_PARAMS.

Parameters:
  • attrs - The attributes of the class
Overrides: outils.AutoSlots._GetSlots