Xu He Jie has uploaded a new change for review. Change subject: add api registeration mechanism ......................................................................
add api registeration mechanism add registAPI method, then other modules can implement the api and regist their implement to API.py. *add api registeration mechanism *add Base class for add ABCMeta as metaclass *add class decorator for add abstractmethod for every public method. this can limit people to implement the api as interface. *add PartialProxy it similar as functools.partial, but this can access class member Change-Id: I8eabbec2526041e548591b62252d754b1f5934b5 Signed-off-by: Xu He Jie <x...@linux.vnet.ibm.com> --- A tests/apiTests.py M vdsm/API.py 2 files changed, 119 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/24/5524/1 -- To view, visit http://gerrit.ovirt.org/5524 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8eabbec2526041e548591b62252d754b1f5934b5 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Xu He Jie <x...@linux.vnet.ibm.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/vdsm-patches