<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-troveclient.git/troveclient/compat/base.py, branch 5.1.0</title>
<subtitle>opendev.org: openstack/python-troveclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/'/>
<entry>
<title>Fix python3 compatibility issues</title>
<updated>2018-08-31T12:51:32+00:00</updated>
<author>
<name>Marcin Piwowarczyk</name>
<email>m.piwowarczy@samsung.com</email>
</author>
<published>2018-08-27T07:41:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=4021a1062b207f68747e10ffe88e93a7b7726014'/>
<id>4021a1062b207f68747e10ffe88e93a7b7726014</id>
<content type='text'>
While executing functional tests in trove project, with baseptyhon
python3 in change [1], there appears few incompatibilities
in troveclient.

All of them are directly related to differences in PY3 version.

This change removes these issues and will allow to execute functional
tests seamlessly.

Change details:
  * troveclient/compat/base.py - dict.iteritems was removed in PY3
    because dict.items now does the thing dict.iteritems did in PY2
  * troveclient/compat/client.py - json.loads expects string, and
    PY3 doesnt convert bytes to string. We have to use explicity call
    decode() which will decode given bytes to string
  * troveclient/apiclient/base.py - to avoid infinite recursion
    exception raised when pickling class attributes

[1] I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d

Change-Id: I8989fd4798e80eae27408017e1543819a68b4ab1
Signed-off-by: Marcin Piwowarczyk &lt;m.piwowarczy@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While executing functional tests in trove project, with baseptyhon
python3 in change [1], there appears few incompatibilities
in troveclient.

All of them are directly related to differences in PY3 version.

This change removes these issues and will allow to execute functional
tests seamlessly.

Change details:
  * troveclient/compat/base.py - dict.iteritems was removed in PY3
    because dict.items now does the thing dict.iteritems did in PY2
  * troveclient/compat/client.py - json.loads expects string, and
    PY3 doesnt convert bytes to string. We have to use explicity call
    decode() which will decode given bytes to string
  * troveclient/apiclient/base.py - to avoid infinite recursion
    exception raised when pickling class attributes

[1] I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d

Change-Id: I8989fd4798e80eae27408017e1543819a68b4ab1
Signed-off-by: Marcin Piwowarczyk &lt;m.piwowarczy@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use strutils.to_slug() instead of utils.slugify()</title>
<updated>2016-09-06T01:17:51+00:00</updated>
<author>
<name>Christian Berendt</name>
<email>berendt@b1-systems.de</email>
</author>
<published>2014-05-27T21:54:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=b592b42aa1a8a9683af40fa1c011c7cd1665b45a'/>
<id>b592b42aa1a8a9683af40fa1c011c7cd1665b45a</id>
<content type='text'>
Oslo provides a function, to_slug() in strutils that is substantially
similar to slugify() provided in utils by python-troveclient. Remove
slugify() and use to_slug() instead.

Change-Id: I97bc7cfc2c0e7d14e7617037bff431cdc1eee50f
Closes-Bug: #1266127
Author: Christian Berendt &lt;berendt@b1-systems.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Oslo provides a function, to_slug() in strutils that is substantially
similar to slugify() provided in utils by python-troveclient. Remove
slugify() and use to_slug() instead.

Change-Id: I97bc7cfc2c0e7d14e7617037bff431cdc1eee50f
Closes-Bug: #1266127
Author: Christian Berendt &lt;berendt@b1-systems.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the oslo.utils.reflection to extract the class name</title>
<updated>2016-01-08T09:21:14+00:00</updated>
<author>
<name>LiuNanke</name>
<email>nanke.liu@easystack.cn</email>
</author>
<published>2016-01-08T07:48:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=416457de4db4d06468fd783b3a604521e0853ee8'/>
<id>416457de4db4d06468fd783b3a604521e0853ee8</id>
<content type='text'>
The oslo.utils reflection module/code handles more variations
 of where a class name may come from (on python 2 and python 3)
so its usage allows getting more accurate class names so we might
as well use it.

Change-Id: I7b130d6acb183a06a4efe648ee2c3fbd2905cdd5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The oslo.utils reflection module/code handles more variations
 of where a class name may come from (on python 2 and python 3)
so its usage allows getting more accurate class names so we might
as well use it.

Change-Id: I7b130d6acb183a06a4efe648ee2c3fbd2905cdd5
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "fixed several pep8 issues"</title>
<updated>2014-05-28T01:26:28+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-05-28T01:26:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=9844f4dcdcd44bf9566ad182b3efd531d7c6f38d'/>
<id>9844f4dcdcd44bf9566ad182b3efd531d7c6f38d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed several pep8 issues</title>
<updated>2014-05-13T21:12:17+00:00</updated>
<author>
<name>Christian Berendt</name>
<email>berendt@b1-systems.de</email>
</author>
<published>2014-05-13T21:09:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=31569163a5927c97c6286157aecf83a7b4ce945b'/>
<id>31569163a5927c97c6286157aecf83a7b4ce945b</id>
<content type='text'>
  * E265 block comment should start with '# '
  * E128 continuation line under-indented for visual indent
  * E713 test for membership should be 'not in'

Tested with pep8 version 1.5.6 (2014-04-14).

Change-Id: If2853c79bea91ebef5cd97dff66788b46b174a9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  * E265 block comment should start with '# '
  * E128 continuation line under-indented for visual indent
  * E713 test for membership should be 'not in'

Tested with pep8 version 1.5.6 (2014-04-14).

Change-Id: If2853c79bea91ebef5cd97dff66788b46b174a9a
</pre>
</div>
</content>
</entry>
<entry>
<title>Enabled F821, H306, H402, and H404 flake8 rule</title>
<updated>2014-05-09T08:54:39+00:00</updated>
<author>
<name>Sushil Kumar</name>
<email>sushil.kumar2@globallogic.com</email>
</author>
<published>2014-01-13T17:04:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=8bc695bd70853305bdd1009a69503728712f57a5'/>
<id>8bc695bd70853305bdd1009a69503728712f57a5</id>
<content type='text'>
Reasons:
- F821 is disabled.
- H306 is disabled.
- H402 is disabled.
- H404 is disabled.

Changes:
- Updates tox.ini to enable F821, H306, H402 and H404 rules.
- Updates code for F821, H306, H402 and H404 violation.

Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reasons:
- F821 is disabled.
- H306 is disabled.
- H402 is disabled.
- H404 is disabled.

Changes:
- Updates tox.ini to enable F821, H306, H402 and H404 rules.
- Updates code for F821, H306, H402 and H404 violation.

Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed misspellings of common words</title>
<updated>2013-12-03T23:50:01+00:00</updated>
<author>
<name>Nikhil Manchanda</name>
<email>SlickNik@gmail.com</email>
</author>
<published>2013-12-03T23:49:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=c1e46dcd00d589464a97d14b3bfc8fcf87ace707'/>
<id>c1e46dcd00d589464a97d14b3bfc8fcf87ace707</id>
<content type='text'>
Fixed misspelling of common words found by the 'misspellings' tool.

Closes-Bug: #1257531
Change-Id: Ic6bedbce3a242d6e1340ecc442d29605af8be9a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed misspelling of common words found by the 'misspellings' tool.

Closes-Bug: #1257531
Change-Id: Ic6bedbce3a242d6e1340ecc442d29605af8be9a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolve compatability for troveclient/compat</title>
<updated>2013-10-22T22:56:38+00:00</updated>
<author>
<name>Kui Shi</name>
<email>skuicloud@gmail.com</email>
</author>
<published>2013-10-19T09:50:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=fa3f5e94434292ade94b1f59474802759469b078'/>
<id>fa3f5e94434292ade94b1f59474802759469b078</id>
<content type='text'>
transform print statement to print function
import urlutils from openstack common

Partial implements: blueprint py33-support

Change-Id: I2491fb6719b21195abb6ea5602ddb8c86487d100
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
transform print statement to print function
import urlutils from openstack common

Partial implements: blueprint py33-support

Change-Id: I2491fb6719b21195abb6ea5602ddb8c86487d100
</pre>
</div>
</content>
</entry>
<entry>
<title>Massive refactoring to the troveclient</title>
<updated>2013-10-10T02:21:08+00:00</updated>
<author>
<name>Michael Basnight</name>
<email>mbasnight@gmail.com</email>
</author>
<published>2013-09-27T05:26:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=fd43cbd73b9de8a216039e6e66a8523e4c96543d'/>
<id>fd43cbd73b9de8a216039e6e66a8523e4c96543d</id>
<content type='text'>
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
</pre>
</div>
</content>
</entry>
</feed>
