Script bodhi_client_py :: Class BodhiClient
[hide private]
[frames] | no frames]

Class BodhiClient

source code

A command-line client to interact with Bodhi.

Instance Methods [hide private]
 
__init__(self, opts) source code
 
authenticate(self)
Return an authenticated session cookie.
source code
 
save_session(self)
Store a pickled session cookie.
source code
 
load_session(self)
Load a stored session cookie.
source code
 
send_request(self, method, auth=False, **kw)
Send a request to the server.
source code
 
new(self, opts) source code
 
list(self, opts) source code
 
delete(self, opts) source code
 
push_to_testing(self, opts) source code
 
push_to_stable(self, opts) source code
 
masher(self, opts) source code
 
push(self, opts) source code
 
_split(self, var, delim) source code
 
_parse_file(self, opts) source code
Class Variables [hide private]
  session = None
Method Details [hide private]

send_request(self, method, auth=False, **kw)

source code 
Send a request to the server. The given method is called with any keyword parameters in **kw. If auth is True, then the request is made with an authenticated session cookie.