11 Commits

Author SHA1 Message Date
Jenkins
8ed38707b1 Merge "Remove the monkey patching of _ into the builtins." 2013-07-01 19:42:23 +00:00
Akihiro MOTOKI
a5076e6207 Enables H404 check (multi line docstring) in flake8
This commit ensures docstring follows the docstring convention.

Also enables H301 (one import per line) in flake8.
There is already no violation the source codes.

Change-Id: Icf6ce5bae40b2e6492c060a28587d825a1837b43
2013-06-17 18:32:54 +09:00
Alex Gaynor
2a5fd7e547 Remove the monkey patching of _ into the builtins.
Previous _ was monkey patched into builtins whenever
certain modules were imported. This removes that and
simply imports it when it is needed.

Change-Id: I8b7cdc7a8da21ed3e8bc69b18414dfc89e8935b8
2013-06-14 10:47:42 -07:00
Maru Newby
3c193c9387 Enable automatic validation of many HACKING rules.
* Add hacking to the tox build - a set of flake8 plugins that
   perform automatic validation of many HACKING.rst rules.
 * This patch configures hacking in the tox build and performs
   the mechanical cleanup required to allow the checks to pass.
 * See https://pypi.python.org/pypi/hacking

Change-Id: Ib41313b5aae991e6ffef2a89dd69e83985bdc36d
2013-04-08 23:10:35 +00:00
He Jie Xu
4421ab10b8 Fix xml request doesn't work with unicode
Fix bug 1160704

* httplib2 doesn't work with unicode url and params. So encode all unicode
to utf-8 before request.
* Fix xml serializer doesn't work with unicode
* Decode command argument to unicode in main function
* Exception's message maybe include unicode, decode message to unicode
before logging or print.
* Sync the changing of serializer/deserilizer's code with quantum server code
  https://review.openstack.org/#/c/25482/
  https://review.openstack.org/#/c/25046/
  https://review.openstack.org/#/c/21410/
* Enable xml test

Change-Id: Ib140e34d54cc916e2ea172e4bad9e4a77388723a
2013-04-07 21:49:15 +08:00
Jenkins
ee499b65d5 Merge "quantumclient.common.serializer module cleanup" 2013-03-03 21:04:12 +00:00
He Jie Xu
49982a3aea Add pagination support for client
Fixes bug 1130625

Add pagination params: -P, --page-size SIZE
Add sorting params: --sort-key FIELD --sort-dir {asc,desc}
Add xml support

Change-Id: I76abb6335f53176feade216413a8cabaaefe42be
2013-03-01 12:43:25 +08:00
Tatyana Leontovich
406f1adf45 quantumclient.common.serializer module cleanup
Remove unused methods in quantumclient.common.serializer.XMLDeserializer
that tries to access non existing attributes of xml node:
* find_first_child_named
* extract_text
* find_children_named

Change-Id: I0aff5933fa75e50748e9d0325d898c2f6836fa58
Fixes: bug #1132850
2013-02-27 11:28:03 +02:00
gongysh
5117731a6d Support XML request format
blueprint quantum-client-xml

Change-Id: I9db8ea7c395909def00d6f25c9c1a98c07fdde68
2013-02-06 18:56:10 +08:00
Maru Newby
fa43d08dcb Clean up codebase in accordance with HACKING/PEP8.
* Adds HACKING.rst
 * Addresses 981208

Change-Id: I3d701ca9a748a0c4ceada7d76a31dc6bb2d5969b
2012-05-02 18:23:46 -07:00
Maru Newby
05c5a2b4a9 Remove server-specific functionality.
* Moved server-specific functionality found in quantum.common to
   the quantum repo.
 * Renamed primary package from quantum -> quantumclient.
 * Addresses bug 977711 and bug 921933

Change-Id: If34553924c8dfcc6b148c1d91f173a4b81eeb95a
2012-04-24 14:14:52 -07:00