Package backend :: Package server :: Package handlers :: Package xmlrpc :: Module up2date :: Class Up2date
[hide private]
[frames] | no frames]

Class Up2date

source code


xml-rpc Server Functions that we will provide for the outside world.

Instance Methods [hide private]
 
__init__(self)
Up2date Class Constructor
source code
 
auth_system(self, action, system_id) source code
 
login(self, system_id, extra_data={})
Clients v2+ Log in routine.
source code
 
listChannels(self, system_id)
Clients v2+
source code
 
subscribeChannels(self, system_id, channelNames, username, passwd)
Clients v2+
source code
 
unsubscribeChannels(self, system_id, channelNames, username, passwd)
Clients v2+
source code
 
solvedep(self, system_id, deps)
Clients v1- Solve dependencies for a given dependency problem list.
source code
 
solveDependencies(self, system_id, deps)
Clients v2+ Solve dependencies for a given dependency problem list (newer version) IN: a dependency problem list: [name, name, name, ...] RET: a hash {name: [[n, v, r, e], [n, v, r, e], ...], ...
source code
 
solveDependencies_arch(self, system_id, deps)
Does the same thing as solve_dependencies, but also returns the architecture label with the package info.
source code
 
solveDependencies_with_limits(self, system_id, deps, all=0, limit_operator=None, limit=None)
This version of solve_dependencies allows the caller to get all of the packages that solve a dependency and limit the packages that are returned to those that match the criteria defined by limit_operator and limit.
source code
 
history(self, system_id, summary, body='')
Clients v2+ Add a history log for a performed action
source code
 
__solveDep_prepare(self, system_id, deps, action, clientVersion)
Response for clients: version 1: list version 2: hash
source code
 
__solveDep(self, system_id, deps, action, clientVersion)
Response for clients: version 1: list version 2: hash
source code
 
__solveDep_arch(self, system_id, deps, action, clientVersion)
Response for clients: version 1: list version 2: hash
source code
 
__solveDep_with_limits(self, system_id, deps, action, clientVersion, all=0, limit_operator=None, limit=None)
Response for clients: version 1: list version 2: hash
source code

Inherited from spacewalk.common.RPC_Base.RPC_Base: get_function

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Up2date Class Constructor

o Initializes inherited class.
o Appends the functions available to the outside world in the
  rhnHandler list.

Overrides: spacewalk.common.RPC_Base.RPC_Base.__init__

auth_system(self, action, system_id)

source code 
Overrides: spacewalk.server.rhnHandler.rhnHandler.auth_system

login(self, system_id, extra_data={})

source code 

Clients v2+ Log in routine. Return a dictionary of session token/channel information. Also sets this information in the headers.

solvedep(self, system_id, deps)

source code 
Clients v1-
Solve dependencies for a given dependency problem list.
IN:  a dependency problem list: [name, name, name, ...]
RET: a package list: [[n,v,r,e],[n,v,r,e],...] That solves the
     dependencies.

solveDependencies(self, system_id, deps)

source code 

Clients v2+ Solve dependencies for a given dependency problem list (newer version) IN: a dependency problem list: [name, name, name, ...] RET: a hash {name: [[n, v, r, e], [n, v, r, e], ...], ...}

solveDependencies_arch(self, system_id, deps)

source code 

Does the same thing as solve_dependencies, but also returns the architecture label with the package info. IN: a dependency problem list: [name, name, name, ...] RET: a hash {name: [[n, v, r, e, a], [n, v, r, e, a], ...], ...}

solveDependencies_with_limits(self, system_id, deps, all=0, limit_operator=None, limit=None)

source code 

This version of solve_dependencies allows the caller to get all of the packages that solve a dependency and limit the packages that are returned to those that match the criteria defined by limit_operator and limit. This version of the function also returns the architecture label of the package[s] that get returned.

limit_operator can be any of: '<', '<=', '==', '>=', or '>'. limit is a a string of the format [epoch:]name-version-release deps is a list of filenames that the packages that are returned must provide. version is the version of the client that is calling the function.