~jaypipes/glance/bug704038

Viewing all changes in revision 31.

  • Committer: Tarmac
  • Author(s): jaypipes at gmail
  • Date: 2010-12-28 02:11:57 UTC
  • mfrom: (29.2.6 fixups-to-client)
  • Revision ID: tarmac-20101228021157-m5fmphb55z6pkucb
    Fixes a number of things that came up during initial
    coding of the admin tool:

    * Fix client constructor to behave like httplib.HTTPConnection
      instead of accepting a URL, it now accepts host, port, and
      use_ssl boolean switch that turns on HTTPSConnection
    * Adds headers properly to the request in client.do_request().
      Previously, was erroneously calling httplib.HTTPConnection.putheader
      after calling httplib.HTTPConnection.request, which was incorrect
    * Now returns type and size of images in index
    * Webob.Response and httplib.HTTPResponse have slightly different
      ways of accessing headers. Fixed an attribute error that was coming
      up because the tests assume webob.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: