atom.client
index
/usr/local/svn/gdata-python-client/src/atom/client.py

AtomPubClient provides CRUD ops. in line with the Atom Publishing Protocol.

 
Modules
       
atom

 
Classes
       
__builtin__.object
AtomPubClient

 
class AtomPubClient(__builtin__.object)
     Methods defined here:
Delete = delete(self, uri=None, auth_token=None, http_request=None, **kwargs)
Get = get(self, uri=None, auth_token=None, http_request=None, **kwargs)
ModifyRequest = modify_request(self, http_request)
Post = post(self, uri=None, data=None, auth_token=None, http_request=None, **kwargs)
Put = put(self, uri=None, data=None, auth_token=None, http_request=None, **kwargs)
Request = request(self, method=None, uri=None, auth_token=None, http_request=None, **kwargs)
__init__(self, http_client=None, host=None, auth_token=None, **kwargs)
Creates a new AtomPubClient instance.
 
Args:
  http_client: An object capable of performing HTTP requests through a
               request method. This object is used to perform the request
               when the AtomPubClient's request method is called. Used to
               allow HTTP requests to be directed to a mock server, or use
               an alternate library instead of the default of httplib to
               make HTTP requests.
  host: str The default host name to use if a host is not specified in the
        requested URI.
  auth_token: An object which sets the HTTP Authorization header when its
              modify_request method is called.
delete(self, uri=None, auth_token=None, http_request=None, **kwargs)
get(self, uri=None, auth_token=None, http_request=None, **kwargs)
modify_request(self, http_request)
post(self, uri=None, data=None, auth_token=None, http_request=None, **kwargs)
put(self, uri=None, data=None, auth_token=None, http_request=None, **kwargs)
request(self, method=None, uri=None, auth_token=None, http_request=None, **kwargs)
Performs an HTTP request to the server indicated.
 
Uses the http_client instance to make the request.
 
Args:
  method: The HTTP method as a string, usually one of 'GET', 'POST',
          'PUT', or 'DELETE'
  uri: The URI desired as a string or atom.http_core.Uri. 
  http_request: 
  auth_token: An authorization token object whose modify_request method
              sets the HTTP Authorization header.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
auth_token = None
host = None

 
Data
        __author__ = 'j.s@google.com (Jeff Scudder)'

 
Author
        j.s@google.com (Jeff Scudder)