Package backend :: Package server :: Package action :: Module utils :: Class ChannelPackage
[hide private]
[frames] | no frames]

Class ChannelPackage

source code

Represents a package contained in a channel that the server is subscribed to.

Instance Methods [hide private]
 
__init__(self, server_id, package_name)
Constructor.
source code
 
_get_package_info(self)
"Private" function that retrieves info about the package.
source code
 
_get_package_field_ids(self)
"Private" function that retrieves the database id's for the name, EVR, and package architecture and sets self.name_id, self.evr_id, and self.arch_id to their values.
source code
 
exists(self)
Returns True if the package is available for the server according to the db, False otherwise.
source code
 
get_name_id(self)
Returns the name_id of the package.
source code
 
get_evr_id(self)
Returns the evr_id of the package.
source code
 
get_arch_id(self)
Returns the arch_id of the package.
source code
 
get_id(self)
Returns the id of the package.
source code
 
get_name(self)
Returns the name of the package.
source code
 
get_version(self)
Returns the version of the package.
source code
 
get_release(self)
Returns the release of the package.
source code
 
get_epoch(self)
Returns the epoch of the package.
source code
 
get_arch(self)
Returns the arch of the package.
source code
Method Details [hide private]

__init__(self, server_id, package_name)
(Constructor)

source code 

Constructor.

server_id is the unique value assigned to the server by the db.
package_name is a string containing the name of the package
    to be looked up.

_get_package_info(self)

source code 

"Private" function that retrieves info about the package. Populates self.package_info, self.id, self.version, self.release, and self.epoch.