Package backend :: Package server :: Package handlers :: Package app :: Module packages :: Class Packages
[hide private]
[frames] | no frames]

Class Packages

source code


Instance Methods [hide private]
 
__init__(self) source code
 
no_op(self)
This is so the client can tell if the satellite supports session tokens or not.
source code
 
uploadPackageInfo(self, username, password, info)
Upload a collection of binary packages.
source code
 
uploadPackageInfoBySession(self, session_string, info) source code
 
_uploadPackageInfo(self, authobj, info) source code
 
uploadSourcePackageInfo(self, username, password, info)
Upload a collection of source packages.
source code
 
uploadSourcePackageInfoBySession(self, session_string, info) source code
 
_uploadSourcePackageInfo(self, authobj, info) source code
 
listChannelSource(self, channelList, username, password) source code
 
listChannelSourceBySession(self, channelList, session_string) source code
 
_listChannelSource(self, authobj, channelList) source code
 
listChannel(self, channelList, username, password)
List packages of a specified channel.
source code
 
listChannelBySession(self, channelList, session_string) source code
 
_listChannel(self, authobj, channelList) source code
 
listChannelChecksum(self, channelList, username, password)
List packages of a specified channel.
source code
 
listChannelChecksumBySession(self, channelList, session_string) source code
 
_listChannelChecksum(self, authobj, channelList) source code
 
login(self, username, password)
This function that takes in the username and password and returns a session string if they are correct.
source code
 
check_session(self, session)
Checks a session string to make sure it is authentic expired.
source code
 
test_login(self, username, password) source code
 
test_new_login(self, username, password, session=None)
rhnpush's --extended-test will call this function.
source code
 
test_check_session(self, session)
rhnpush's --extended-test will call this function.
source code
 
listMissingSourcePackages(self, channelList, username, password)
List source packages for a list of channels.
source code
 
listMissingSourcePackagesBySession(self, channelList, session_string) source code
 
_listMissingSourcePackages(self, authobj, channelList) source code
 
channelPackageSubscription(self, username, password, info)
Uploads an RPM package.
source code
 
channelPackageSubscriptionBySession(self, session_string, info) source code
 
_channelPackageSubscription(self, authobj, info) source code
 
getAnyChecksum(self, info, username=None, password=None, session=None, is_source=0)
returns checksum info of available packages also does an existance check on the filesystem.
source code
 
getPackageChecksum(self, username, password, info) source code
 
getPackageMD5sum(self, username, password, info)
bug#177762 gives md5sum info of available packages.
source code
 
getPackageChecksumBySession(self, session_string, info) source code
 
getPackageMD5sumBySession(self, session_string, info) source code
 
_getPackageChecksum(self, org_id, pkg_infos) source code
 
_get_package_checksum(self, h, query_args) source code
 
_MD5sum2Checksum_info(self, info) source code
 
_Checksum2MD5sum_list(self, checksum_list) source code
 
getSourcePackageChecksum(self, username, password, info) source code
 
getSourcePackageMD5sum(self, username, password, info) source code
 
getSourcePackageChecksumBySession(self, session_string, info) source code
 
getSourcePackageMD5sumBySession(self, session_string, info) source code
 
_getSourcePackageChecksum(self, org_id, pkg_infos)
Gives checksum info of available source packages.
source code

Inherited from spacewalk.common.RPC_Base.RPC_Base: get_function

Class Variables [hide private]
  _get_pkg_info_query = '\n select\n c.chec...
Method Details [hide private]

__init__(self)
(Constructor)

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

no_op(self)

source code 

This is so the client can tell if the satellite supports session tokens or not.

This was used in rhnpush-5.5.26 and older. When there will be no such version of rhnpush in wild, then this function can be safely removed.

login(self, username, password)

source code 

This function that takes in the username and password and returns a session string if they are correct. It raises a rhnFault if the user/pass combo is not acceptable.

getPackageMD5sum(self, username, password, info)

source code 

bug#177762 gives md5sum info of available packages. also does an existance check on the filesystem.

_getSourcePackageChecksum(self, org_id, pkg_infos)

source code 

Gives checksum info of available source packages. Also does an existance check on the filesystem.


Class Variable Details [hide private]

_get_pkg_info_query

Value:
'''
        select
               c.checksum_type,
               c.checksum,
               p.path path
         from
               rhnPackageEVR pe,
               rhnPackageName pn,
...