Package backend :: Package server :: Package handlers :: Package xmlrpc :: Module errata :: Class Errata
[hide private]
[frames] | no frames]

Class Errata

source code


Errata class --- retrieve (via xmlrpc) package errata.

Instance Methods [hide private]
 
__init__(self) source code
 
GetByPackage(self, pkg, osRel)
Clients v1- Get errata for a package given "n-v-r" format IN: pkg: "n-v-r" (old client call) or [n,v,r] osRel: OS release RET: a hash by errata that applies to this package (ie, newer packages are available).
source code
 
getPackageErratum(self, system_id, pkg)
Clients v2+ - Get errata for a package given [n,v,r,e,a,...] format
source code
 
_sanitize_result(self, h) source code
 
getErrataInfo(self, system_id, errata_id) source code
 
getErrataNamesById(self, system_id, errata_ids)
Return a list of RhnErrata tuples of (id, advisory_name)
source code

Inherited from spacewalk.server.rhnHandler.rhnHandler: auth_system

Inherited from spacewalk.common.RPC_Base.RPC_Base: get_function

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: spacewalk.common.RPC_Base.RPC_Base.__init__

GetByPackage(self, pkg, osRel)

source code 
Clients v1- Get errata for a package given "n-v-r" format
IN:  pkg:   "n-v-r" (old client call)
            or [n,v,r]
     osRel: OS release
RET: a hash by errata that applies to this package
     (ie, newer packages are available). We also limit the scope
     for a particular osRel.

getPackageErratum(self, system_id, pkg)

source code 

Clients v2+ - Get errata for a package given [n,v,r,e,a,...] format

Sing-along: You say erratum(sing), I say errata(pl)! :) IN: pkg: [n,v,r,e,s,a,ch,...] RET: a hash by errata that applies to this package

getErrataNamesById(self, system_id, errata_ids)

source code 
Return a list of RhnErrata tuples of (id, advisory_name)

IN: system_id - id of the system requesting this info (must be
    subscribed to the channel that contains the erratas)
    errata_ids - a list of RhnErrata ids

Only the erratas that belong to channels that the client system
is subscribed to are returned. If no erratas match this
criterion, then an empty list is returned.