7 Commits

Author SHA1 Message Date
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