
12 Aug
2016
12 Aug
'16
12:42 p.m.
This patch set is deprecated. Please check the v2. On 08/11/2016 05:48 PM, dhbarboza82@gmail.com wrote:
From: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
To avoid code duplication across WoK plug-ins, this patch encapsulates the core logic in all 'model.py' files in two utility functions in wok/utils.py to be used by all plug-ins.
An example of usage is given in model.py from WoK.
Daniel Henrique Barboza (2): wok/utils.py: adding utility 'get model instances' methods model.py: use the new 'get_all_model_instances' utils function
src/wok/model/model.py | 22 ++---------------- src/wok/utils.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 20 deletions(-)