Now the /invoices and /quotations API support 'detailed' parameter
to indicate if needs to return a detailed invoice or quotation. But
the support is missed in client, this patch fixes it.
Change-Id: I9069f0d5715c419e45c93ec89d5b979cda0b7baf
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I43d1d93817fa533fdfc68893008a2921eb09ddcf
Openstack oslo_utils has a generate_uuid function for generating
uuids. We should use that function when generating uuids for
consistency.
Change-Id: Ifa1c63d7c1aa7859458c42cbe6e56245c393c749
Fix the Sphinx html_last_updated_fmt for Python3. The html_last_updated_fmt
option is interpreted as a byte string in python3, causing Sphinx
build to break. This patch makes it utf-8 string.
Change-Id: Ifb24a14cea59db3efca22ee69961c19db217a55c
Quotations are always returned for the current month, distil
doesn't take request parameters into account for it. This changes
the manager to adhere to that.
Change-Id: I2bbc6e1033e97370c88396c42d92fbd828592eed
Currently, Distil supports getting credits of current user. This
patch adds the support for Distil client and test cases are added
together.
Change-Id: Ibbfd4858d205f78de7a3cda8748b130151a1e266
According to the change of Distil API, this patch adds the support for
/invoices and /quotations. And by the way, change the /measurements API
as well. Unit tests are added based on changes.
Change-Id: I251b534a4e4a41a76a3743118010be408116c27a
Distil-UI project is depending on distilclient and now there is a py35
gate failure because disticlient doesn't fully support py3.x. This patch
fixes it and adds some test cases to make sure the change won't break
the functions.
Besides, the patch also fixes some pep8 issues by the way.
Change-Id: Ide043d0fca019cd48796669374dc882311e935a1
Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.
This change is self-testing.
For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
[*] http://docs.openstack.org/infra/bindep/
Change-Id: Ic3f502f358e4f2cef8f980417eba79729fbfc41b