Package u1rest :: Package lib :: Module client :: Class BaseClient
[hide private]
[frames] | no frames]

Class BaseClient

source code

object --+
         |
        BaseClient
Known Subclasses:

Base client to provide common functionaility.

Instance Methods [hide private]
 
__init__(self, http_host, auth)
Ubuntu One RESTful Client.
source code
 
get_url_from_path(self, path, params=None)
Using the path, parameters and host, create a URL.
source code
 
_get_authenticated_request(self, url, params=None, method='GET', data=None)
Helper to get a urllib2.Request object with the auth headers.
source code
 
_handle_request(self, request)
Helper to handle urllib2.Resquest object.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, http_host, auth)
(Constructor)

source code 

Ubuntu One RESTful Client.

Overrides: object.__init__

get_url_from_path(self, path, params=None)

source code 

Using the path, parameters and host, create a URL.

Parameters:
  • path - The url path
  • params - A dict of parameters to be used as a query string.