Change in ovirt-engine-sdk[sdk_4.1]: Add generic writer

Code Review gerrit at ovirt.org
Fri Apr 21 09:59:00 UTC 2017


>From Ondra Machacek <omachace at redhat.com>:

Ondra Machacek has submitted this change and it was merged.

Change subject: Add generic writer
......................................................................


Add generic writer

Currently the SDK doesn't have any mechanism to generate an XML document
from an object whose type isn't known. This patch adds a new
'Writer.write' method that decides what is the specific writer to use
based on the type of the object, so that the caller doesn't need to
explicitly select it.

Change-Id: I42d697b840a7b4ee2a197e881678e389f7cab919
Bug-Url: https://bugzilla.redhat.com/1444114
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit e868377781ba2940aea026b9b1d6ca9fc3f215af)
---
M generator/src/main/java/org/ovirt/sdk/python/WritersGenerator.java
M sdk/ext/ov_xml_writer.c
M sdk/lib/ovirtsdk4/writer.py
M sdk/tests/test_writer.py
4 files changed, 274 insertions(+), 20 deletions(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/75735
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I42d697b840a7b4ee2a197e881678e389f7cab919
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_4.1
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the Engine-commits mailing list