Make the __slots__ functionality more modular
As we will introduce another set of containers using the __slots__ trick we abstract away as much as possible to separate bases classes. The child classes then adapt them for their needs. This leads to less code duplication. Signed-off-by:René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- Makefile.am 2 additions, 0 deletionsMakefile.am
- lib/objects.py 7 additions, 18 deletionslib/objects.py
- lib/objectutils.py 93 additions, 0 deletionslib/objectutils.py
- lib/opcodes.py 18 additions, 41 deletionslib/opcodes.py
- test/ganeti.objectutils_unittest.py 50 additions, 0 deletionstest/ganeti.objectutils_unittest.py
- test/ganeti.opcodes_unittest.py 3 additions, 3 deletionstest/ganeti.opcodes_unittest.py
- tools/cfgshell 1 addition, 1 deletiontools/cfgshell
Loading
Please register or sign in to comment