Bug 960747 - RHEVM-SDK: sdk expose datetime elements as strings while schema defines them as xs:dateTime
Summary: RHEVM-SDK: sdk expose datetime elements as strings while schema defines them ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Juan Hernández
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 1019461
TreeView+ depends on / blocked
 
Reported: 2013-05-07 20:43 UTC by Michael Pasternak
Modified: 2016-02-10 19:13 UTC (History)
9 users (show)

Fixed In Version: is3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:16:07 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 14576 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.