<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-keystoneclient.git/keystoneclient/utils.py, branch stable/queens</title>
<subtitle>opendev.org: openstack/python-keystoneclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/'/>
<entry>
<title>Handle UTC+00:00 in datetime strings</title>
<updated>2017-12-02T17:15:26+00:00</updated>
<author>
<name>Monty Taylor</name>
<email>mordred@inaugust.com</email>
</author>
<published>2017-12-02T17:11:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=f0c9b20e0fd512e4eaa3f041a02afd80b871fe75'/>
<id>f0c9b20e0fd512e4eaa3f041a02afd80b871fe75</id>
<content type='text'>
In some cases, the following:

  datetime.datetime.now(tz=iso8601.iso8601.UTC).tzinfo.tzname()

returns:

  'UTC+00:00'

rather than:

  'UTC'

resulting in strings that look like:

  2013-03-04T12:00:01.000000UTC+00:00

That is just flatly invalid. The code here accounts for a tzname of
"UTC" and normalizes to to being a trailing Z as-per the ISO 8601 spec,
but it does not account for UTC+00:00. Add support for that so that we
don't produce invalid date strings.

Most of this can be avoided by replacing use of this function with the
isoformat method of datetime instead.

  datetime.datetime.now(tz=iso8601.iso8601.UTC).isoformat()

Produces

  2013-03-04T12:00:01.000000+00:00

Which while different from

  2013-03-04T12:00:01.000000Z

is still a valid iso8601 string.

Change-Id: I52ca7561abee158285c2c98ba63d84c62e12360f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In some cases, the following:

  datetime.datetime.now(tz=iso8601.iso8601.UTC).tzinfo.tzname()

returns:

  'UTC+00:00'

rather than:

  'UTC'

resulting in strings that look like:

  2013-03-04T12:00:01.000000UTC+00:00

That is just flatly invalid. The code here accounts for a tzname of
"UTC" and normalizes to to being a trailing Z as-per the ISO 8601 spec,
but it does not account for UTC+00:00. Add support for that so that we
don't produce invalid date strings.

Most of this can be avoided by replacing use of this function with the
isoformat method of datetime instead.

  datetime.datetime.now(tz=iso8601.iso8601.UTC).isoformat()

Produces

  2013-03-04T12:00:01.000000+00:00

Which while different from

  2013-03-04T12:00:01.000000Z

is still a valid iso8601 string.

Change-Id: I52ca7561abee158285c2c98ba63d84c62e12360f
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove use of positional decorator</title>
<updated>2017-08-07T20:14:55+00:00</updated>
<author>
<name>Morgan Fainberg</name>
<email>morgan.fainberg@gmail.com</email>
</author>
<published>2017-08-07T20:13:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=4a43aa02b86e3203bb6614382ef598926a1464cb'/>
<id>4a43aa02b86e3203bb6614382ef598926a1464cb</id>
<content type='text'>
The positional decorator results in poorly maintainable code in
a misguided effort to emulate python3's key-word-arg only notation
and functionality. This patch removes keystoneclient's dependance
on the positional decorator.

Change-Id: I9e691cc8b0c04992f4a8dabd67e1b413d3220d23
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The positional decorator results in poorly maintainable code in
a misguided effort to emulate python3's key-word-arg only notation
and functionality. This patch removes keystoneclient's dependance
on the positional decorator.

Change-Id: I9e691cc8b0c04992f4a8dabd67e1b413d3220d23
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused log</title>
<updated>2017-04-25T09:22:09+00:00</updated>
<author>
<name>zlyqqq</name>
<email>hfzhengliuyang@163.com</email>
</author>
<published>2017-04-25T09:22:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=683c469b2f87bbfb9b36918afba300340b9e5ed4'/>
<id>683c469b2f87bbfb9b36918afba300340b9e5ed4</id>
<content type='text'>
Change-Id: I1fe2c1703b03eb1c8458c53bdd208a91ababf941
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I1fe2c1703b03eb1c8458c53bdd208a91ababf941
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Remove unauthenticated functions"</title>
<updated>2016-11-10T14:20:18+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-11-10T14:20:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=228d9b7810fa2ecdf64c25f57f08e43608f15f93'/>
<id>228d9b7810fa2ecdf64c25f57f08e43608f15f93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unauthenticated functions</title>
<updated>2016-08-24T08:56:23+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2016-08-24T08:56:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=5242c2371b145bb88c467168b8e027ff38693706'/>
<id>5242c2371b145bb88c467168b8e027ff38693706</id>
<content type='text'>
These were used by the shell which has since been removed.

Change-Id: If329da4499b76799356e79099f86a4afdebb00ce
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These were used by the shell which has since been removed.

Change-Id: If329da4499b76799356e79099f86a4afdebb00ce
</pre>
</div>
</content>
</entry>
<entry>
<title>Use exceptions from Keystoneauth</title>
<updated>2016-08-24T08:52:36+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2016-08-24T08:33:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=5b91fedd650613f7ba480039fca7df83c1ff6bed'/>
<id>5b91fedd650613f7ba480039fca7df83c1ff6bed</id>
<content type='text'>
As keystoneclient and other services rely more on keystoneauth we should
assume that keystoneauth is our base auth library, not keystoneclient
and start to default to the objects provided from there. This will make
it easier to remove these objects when the time comes.

For the session independant parts of keystoneclient we should use the
exception names as provided by keystoneauth instead of the aliases in
keystoneclient.

Change-Id: Ic513046f8398a76c244e145d6cc3117cdf6bb4cd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As keystoneclient and other services rely more on keystoneauth we should
assume that keystoneauth is our base auth library, not keystoneclient
and start to default to the objects provided from there. This will make
it easier to remove these objects when the time comes.

For the session independant parts of keystoneclient we should use the
exception names as provided by keystoneauth instead of the aliases in
keystoneclient.

Change-Id: Ic513046f8398a76c244e145d6cc3117cdf6bb4cd
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixing D202 and D203 PEP257 violation.</title>
<updated>2016-05-04T19:45:30+00:00</updated>
<author>
<name>Navid Pustchi</name>
<email>npustchi@gmail.com</email>
</author>
<published>2016-05-03T18:54:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=bca112c8ba5636becd6951fbfb8cb8f2474279fe'/>
<id>bca112c8ba5636becd6951fbfb8cb8f2474279fe</id>
<content type='text'>
Currently tox ignores D202 and D203.
D202: No blank lines allowed after function docstring.
D203: 1 blank required before class docstring.
This change removes D202 and D203 ignores in tox and fix violations.

Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently tox ignores D202 and D203.
D202: No blank lines allowed after function docstring.
D203: 1 blank required before class docstring.
This change removes D202 and D203 ignores in tox and fix violations.

Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix D400 PEP257 violation.</title>
<updated>2016-04-23T17:47:25+00:00</updated>
<author>
<name>Navid Pustchi</name>
<email>npustchi@gmail.com</email>
</author>
<published>2016-04-23T06:48:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=20e23f3e0dfb8853d39eedacd19f8c4f8a434fca'/>
<id>20e23f3e0dfb8853d39eedacd19f8c4f8a434fca</id>
<content type='text'>
Currently tox ignores D400.
D400: First line should end with a period.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently tox ignores D400.
D400: First line should end with a period.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix D401 PEP257 violation.</title>
<updated>2016-04-23T06:25:20+00:00</updated>
<author>
<name>Navid Pustchi</name>
<email>npustchi@gmail.com</email>
</author>
<published>2016-04-23T03:19:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=946e928b5285a4994c4ef365b43295bdd90c9961'/>
<id>946e928b5285a4994c4ef365b43295bdd90c9961</id>
<content type='text'>
Currently tox ignores D401.
401: First line should be in imperative mood.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently tox ignores D401.
401: First line should be in imperative mood.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
</pre>
</div>
</content>
</entry>
<entry>
<title>Removing bandit.yaml in favor of defaults</title>
<updated>2016-04-19T15:35:00+00:00</updated>
<author>
<name>Christopher J Schaefer</name>
<email>cjschaef@us.ibm.com</email>
</author>
<published>2016-03-11T21:55:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=dbf4f3164655ec69a830ed87db0769f01ac1f720'/>
<id>dbf4f3164655ec69a830ed87db0769f01ac1f720</id>
<content type='text'>
Removing old configuration options for build-in defaults of latest
bandit functionality. Also, marking flagged items with _# nosec_
with a descriptive comment on why the code is acceptable as is.

Co-Authored-By: Christopher J Schaefer &lt;cjschaef@us.ibm.com&gt;
Co-Authored-By: Tom Cocozzello &lt;tjcocozz@us.ibm.com&gt;

Change-Id: I138ebd46a8be195177361a9c3306bb70423b639d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing old configuration options for build-in defaults of latest
bandit functionality. Also, marking flagged items with _# nosec_
with a descriptive comment on why the code is acceptable as is.

Co-Authored-By: Christopher J Schaefer &lt;cjschaef@us.ibm.com&gt;
Co-Authored-By: Tom Cocozzello &lt;tjcocozz@us.ibm.com&gt;

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