Bug 960747

Summary: RHEVM-SDK: sdk expose datetime elements as strings while schema defines them as xs:dateTime
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Pasternak <mpastern>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, iheim, jkt, jturner, juan.hernandez, oramraz, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:16:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1019461    

Description Michael Pasternak 2013-05-07 20:43:34 UTC
Description of problem:


sdk expose datetime elements as strings while schema defines them as xs:dateTime

Comment 1 Michael Pasternak 2013-05-07 20:46:32 UTC
issue caused by bug in python generateDS 2.7, fix is available in 2.9

Comment 8 Ilia Meerovich 2013-07-03 12:12:32 UTC
[imeerovi@imeerovi storage_api]$ ipython 
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) 
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from ovirtsdk.xml import params

In [2]: from ovirtsdk.api import API 

In [3]: api = API(url='https://ilia-rhevm.qa.lab.tlv.redhat.com:443', username='admin@internal', password='123456',insecure=True)

In [4]: api.get_time()
Out[4]: datetime.datetime(2013, 7, 3, 15, 10, 57, 24000, tzinfo=<ovirtsdk.xml.params._FixedOffsetTZ object at 0x2d1ce50>)

In [5]: type(api.get_time())
Out[5]: <type 'datetime.datetime'>

In [6]: 
Do you really want to exit ([y]/n)? y
[imeerovi@imeerovi storage_api]$ rpm -q rhevm-sdk-python
rhevm-sdk-python-3.3.0.3-1.el6ev.noarch
[imeerovi@imeerovi storage_api]$

Comment 12 Itamar Heim 2014-01-21 22:16:07 UTC
Closing - RHEV 3.3 Released

Comment 13 Itamar Heim 2014-01-21 22:23:02 UTC
Closing - RHEV 3.3 Released