<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ceilometerclient.git/ceilometerclient/v2/options.py, branch juno-eol</title>
<subtitle>opendev.org: openstack/python-ceilometerclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/'/>
<entry>
<title>Fix hacking rules: H302,H305,H307,H402</title>
<updated>2014-06-11T09:32:16+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>zhiqiang.fan@huawei.com</email>
</author>
<published>2014-06-11T08:32:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=55227d6d32deb49b9a8728d217eece9d4ecfeedc'/>
<id>55227d6d32deb49b9a8728d217eece9d4ecfeedc</id>
<content type='text'>
Currently, OpenStack Proposal Bot tries to update requirements with
global requirements, while the upgraded hacking has introduced some
new rules which are not fully handled by current code.

This patch fixes some simple rules which are quite straight-forward.

Change-Id: If8334f69fb1ad34fbbd6ad898e0e92eb3f81e95a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, OpenStack Proposal Bot tries to update requirements with
global requirements, while the upgraded hacking has introduced some
new rules which are not fully handled by current code.

This patch fixes some simple rules which are quite straight-forward.

Change-Id: If8334f69fb1ad34fbbd6ad898e0e92eb3f81e95a
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor split_by_op and split_by_datatype</title>
<updated>2014-06-02T17:21:51+00:00</updated>
<author>
<name>Chris Dent</name>
<email>chdent@redhat.com</email>
</author>
<published>2014-05-30T10:40:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=2a2e2dd2732240a08d7f0e1288229a39ae380d1c'/>
<id>2a2e2dd2732240a08d7f0e1288229a39ae380d1c</id>
<content type='text'>
split_by_op was returning data against which further error checking was
then required. This change moves that error handling inside the method
and simplifies the regular expression so that it splits (greedily) on
the first operator it finds. If the split is not possible, it is
a ValueError. If the field or value are empty, that is a ValueError.

Both split_by_op and split_by_datatype were doing a findall() where
a match() and split() do the right job and more efficiently.

Regular expression compilation has been moved to the module level
to insure they need only be compiled once. Operator keys must be
sorted by length to ensure the point at which the split happens is
most greedy. Using a split keeps the regex short and removes any
statements about the left and right hand sides of the operator.

Tests added to cover the method more completely, including testing
for corner cases such as single character field or values or
operators showing up in unexpected locations. 'string' variable
renamed to 'query' and 'query_value' to avoid confusion. Named parameters
on string substitution for clarity.

Note that the tests which do self.assertRaises could more explicitly
check the exception with self.assertRaisesRegexp but that would
break compatibility with Python 2.6.

Change-Id: Icd815ff65aba9eae3f76afee3bb33e85d85bea72
Closes-Bug: #1314544
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
split_by_op was returning data against which further error checking was
then required. This change moves that error handling inside the method
and simplifies the regular expression so that it splits (greedily) on
the first operator it finds. If the split is not possible, it is
a ValueError. If the field or value are empty, that is a ValueError.

Both split_by_op and split_by_datatype were doing a findall() where
a match() and split() do the right job and more efficiently.

Regular expression compilation has been moved to the module level
to insure they need only be compiled once. Operator keys must be
sorted by length to ensure the point at which the split happens is
most greedy. Using a split keeps the regex short and removes any
statements about the left and right hand sides of the operator.

Tests added to cover the method more completely, including testing
for corner cases such as single character field or values or
operators showing up in unexpected locations. 'string' variable
renamed to 'query' and 'query_value' to avoid confusion. Named parameters
on string substitution for clarity.

Note that the tests which do self.assertRaises could more explicitly
check the exception with self.assertRaisesRegexp but that would
break compatibility with Python 2.6.

Change-Id: Icd815ff65aba9eae3f76afee3bb33e85d85bea72
Closes-Bug: #1314544
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed several pep8 issues</title>
<updated>2014-05-16T17:20:46+00:00</updated>
<author>
<name>Christian Berendt</name>
<email>berendt@b1-systems.de</email>
</author>
<published>2014-05-13T20:56:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=0f834438227b483e1dd214575df0a8c0bf5e90ad'/>
<id>0f834438227b483e1dd214575df0a8c0bf5e90ad</id>
<content type='text'>
  * E122 continuation line missing indentation or outdented
  * E126 continuation line over-indented for hanging indent
  * E128 continuation line under-indented for visual indent
  * E265 block comment should start with '# '

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

Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  * E122 continuation line missing indentation or outdented
  * E126 continuation line over-indented for hanging indent
  * E128 continuation line under-indented for visual indent
  * E265 block comment should start with '# '

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

Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
</pre>
</div>
</content>
</entry>
<entry>
<title>Update v2.options docstring</title>
<updated>2014-04-15T06:53:25+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>zhiqiang.fan@huawei.com</email>
</author>
<published>2014-04-15T06:41:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=b3da9638264d3bc57a1341e86cc860c496195cfc'/>
<id>b3da9638264d3bc57a1341e86cc860c496195cfc</id>
<content type='text'>
We already support 'type' attribute for query, but the docstring for
build_url and cli_to_array don't refer to it.

And the urlencode with doseq=True will force filter parameters grouped
by name, so the sample in build_url docstring should be corrected too.

Change-Id: I2b526d9e23175b5378ea36e0a532052269c7f0c4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We already support 'type' attribute for query, but the docstring for
build_url and cli_to_array don't refer to it.

And the urlencode with doseq=True will force filter parameters grouped
by name, so the sample in build_url docstring should be corrected too.

Change-Id: I2b526d9e23175b5378ea36e0a532052269c7f0c4
</pre>
</div>
</content>
</entry>
<entry>
<title>py3kcompat: remove in python-ceilometerclient</title>
<updated>2014-02-21T07:22:53+00:00</updated>
<author>
<name>Jia Dong</name>
<email>jiadong.jia@huawei.com</email>
</author>
<published>2014-02-14T07:04:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=f75c253650a8a36005c325eb5fdce7c7f6a3eceb'/>
<id>f75c253650a8a36005c325eb5fdce7c7f6a3eceb</id>
<content type='text'>
Everything is already in six&gt;=1.4.0 and we already depend on such a
version. There's no reason to keep this file. So remove py3kcompat
from python-ceilometerclient.

Change-Id: Ide6876e7a60377cb3843816d1d9ab2c589bc8f1b
Closes-Bug: #1280033
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Everything is already in six&gt;=1.4.0 and we already depend on such a
version. There's no reason to keep this file. So remove py3kcompat
from python-ceilometerclient.

Change-Id: Ide6876e7a60377cb3843816d1d9ab2c589bc8f1b
Closes-Bug: #1280033
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos picked up by misspellings</title>
<updated>2014-01-23T09:50:44+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>zhiqiang.fan@huawei.com</email>
</author>
<published>2014-01-23T09:50:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=cad358f5b276cca06493d102d109e152a1a9065b'/>
<id>cad358f5b276cca06493d102d109e152a1a9065b</id>
<content type='text'>
Joe Gordon has introduced a module named misspellings which can check
typo automatically.

$ pip install misspellings
$ git ls-files | grep -v locale | misspellings -f -

Change-Id: I9eca2e097b03468651814fa563e4380fd573205e
ref: http://lists.openstack.org/pipermail/openstack-dev/2013-December/020975.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Joe Gordon has introduced a module named misspellings which can check
typo automatically.

$ pip install misspellings
$ git ls-files | grep -v locale | misspellings -f -

Change-Id: I9eca2e097b03468651814fa563e4380fd573205e
ref: http://lists.openstack.org/pipermail/openstack-dev/2013-December/020975.html
</pre>
</div>
</content>
</entry>
<entry>
<title>Support the Event API</title>
<updated>2014-01-10T19:00:44+00:00</updated>
<author>
<name>John Herndon</name>
<email>john.herndon@hp.com</email>
</author>
<published>2013-10-30T16:44:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=c74231e74473cdfc8037731b6e9beb539d491814'/>
<id>c74231e74473cdfc8037731b6e9beb539d491814</id>
<content type='text'>
This patch adds support for the currently available
Event API, including events, event types, and traits.

Add an optional data type to the query, ex:
   ceilometer list-events -q 'hostname=string::localhost"

bp extend-client-operations

Change-Id: Icea9bd67f8ee4ff2bf9da9ff6894218689580eb3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for the currently available
Event API, including events, event types, and traits.

Add an optional data type to the query, ex:
   ceilometer list-events -q 'hostname=string::localhost"

bp extend-client-operations

Change-Id: Icea9bd67f8ee4ff2bf9da9ff6894218689580eb3
</pre>
</div>
</content>
</entry>
<entry>
<title>align the order of parameters for urlencode()</title>
<updated>2013-10-14T16:51:58+00:00</updated>
<author>
<name>Kui Shi</name>
<email>skuicloud@gmail.com</email>
</author>
<published>2013-10-14T16:35:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=c58320a4eaa6743e59b31ec90f9f4f38cb9e3b3c'/>
<id>c58320a4eaa6743e59b31ec90f9f4f38cb9e3b3c</id>
<content type='text'>
In Python 3.3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ
across Python runs.

In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.

This change transforms the input dict to a sequence of two-element list,
with fixed order, and update the related expecitng string / fixture
in test cases.

Partial Implement: blueprint py33-support

Change-Id: I6dccde9e584be8335a6375f5fbad5c5cbd7b9b6d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3.3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ
across Python runs.

In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.

This change transforms the input dict to a sequence of two-element list,
with fixed order, and update the related expecitng string / fixture
in test cases.

Partial Implement: blueprint py33-support

Change-Id: I6dccde9e584be8335a6375f5fbad5c5cbd7b9b6d
</pre>
</div>
</content>
</entry>
<entry>
<title>Import urlutils to substitute urllib</title>
<updated>2013-10-14T09:29:10+00:00</updated>
<author>
<name>Kui Shi</name>
<email>skuicloud@gmail.com</email>
</author>
<published>2013-10-14T09:03:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=d70bb3e4e7ecb1464fef7680ed96941b40d0bbb9'/>
<id>d70bb3e4e7ecb1464fef7680ed96941b40d0bbb9</id>
<content type='text'>
Use the openstack common urlutils.

Partial Implement: blueprint py33-support

Change-Id: I45f21d7316fe87952e841004d4c25999138a842b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the openstack common urlutils.

Partial Implement: blueprint py33-support

Change-Id: I45f21d7316fe87952e841004d4c25999138a842b
</pre>
</div>
</content>
</entry>
<entry>
<title>Enhance ceilometer statistics command with --period</title>
<updated>2013-07-23T12:51:17+00:00</updated>
<author>
<name>Guangyu Suo</name>
<email>guangyu@unitedstack.com</email>
</author>
<published>2013-07-19T02:34:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=3a780a6159e53a25e722ec083ab45d915279958a'/>
<id>3a780a6159e53a25e722ec083ab45d915279958a</id>
<content type='text'>
Currently, if don't specify query parameter in ceilometer statistics
command, ceilometer statistics with --period will not work. This change
is trying to fix this issue.

Change-Id: I8723bad11d5c452c2834e33df9bb01ebdc6ce9ce
Fixs: bug #1202658
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, if don't specify query parameter in ceilometer statistics
command, ceilometer statistics with --period will not work. This change
is trying to fix this issue.

Change-Id: I8723bad11d5c452c2834e33df9bb01ebdc6ce9ce
Fixs: bug #1202658
</pre>
</div>
</content>
</entry>
</feed>
