Package ganeti :: Module outils :: Class ValidatedSlots
[hide private]
[frames] | no frames]

Class ValidatedSlots

source code


Sets and validates slots.

Instance Methods [hide private]
 
__init__(self, **kwargs)
Constructor for BaseOpCode.
source code
 
Validate(self)
Validates the slots.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
GetAllSlots(cls)
Compute the list of all declared slots for a class.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

Constructor for BaseOpCode.

The constructor takes only keyword arguments and will set attributes on this object based on the passed arguments. As such, it means that you should not pass arguments which are not in the __slots__ attribute for this class.

Overrides: object.__init__

Validate(self)

source code 

Validates the slots.

This method must be implemented by the child classes.