コード例 #1
0
ファイル: errata.py プロジェクト: bjmingyang/spacewalk
 def __init__(self):
     rhnHandler.__init__(self)
     # Exposed Errata functions:
     self.functions = []
     self.functions.append('GetByPackage')      # Clients v1-
     self.functions.append('getPackageErratum') # Clients v2+
     self.functions.append('getErrataInfo')     # clients v2+
コード例 #2
0
ファイル: up2date.py プロジェクト: bjmingyang/spacewalk
    def __init__(self):
        """ Up2date Class Constructor

           o Initializes inherited class.
           o Appends the functions available to the outside world in the
             rhnHandler list.
        """
        rhnHandler.__init__(self)
        # Function list inherited from rhnHandler
        # This action garners control of what is available to the client.

        # --- Clients v2+ ---
        # (getting headers, source and packages done with GETs now).
        self.functions.append('login')
        self.functions.append('listChannels')
        self.functions.append('subscribeChannels')
        self.functions.append('unsubscribeChannels')
        self.functions.append('history')
        # --- Clients v1- ---
        self.functions.append('listall')
        self.functions.append('listall_size')
        self.functions.append('header')
        self.functions.append('package')
        self.functions.append('source_package')
        self.functions.append('source_package_by_name')
        # --- All clients ---
        self.functions.append('solvedep')
        self.functions.append('solveDependencies')
        self.functions.append('solveDependencies_arch')
        self.functions.append('solveDependencies_with_limits')
コード例 #3
0
ファイル: applet.py プロジェクト: cliffy94/spacewalk
 def __init__(self):
     rhnHandler.__init__(self)
     # Exposed Errata functions:
     self.functions = []
     self.functions.append("poll_status")
     self.functions.append("poll_packages")
     self.functions.append("tie_uuid")
     self.functions.append("has_base_channel")
コード例 #4
0
 def __init__(self):
     rhnHandler.__init__(self)
     # Exposed Errata functions:
     self.functions = []
     self.functions.append('GetByPackage')  # Clients v1-
     self.functions.append('getPackageErratum')  # Clients v2+
     self.functions.append('getErrataInfo')  # clients v2+
     self.functions.append('getErrataNamesById')
コード例 #5
0
ファイル: applet.py プロジェクト: vlad-belogrudov/uyuni
 def __init__(self):
     rhnHandler.__init__(self)
     # Exposed Errata functions:
     self.functions = []
     self.functions.append("poll_status")
     self.functions.append("poll_packages")
     self.functions.append("tie_uuid")
     self.functions.append("has_base_channel")
コード例 #6
0
ファイル: errata.py プロジェクト: kidaa30/spacewalk
 def __init__(self):
     rhnHandler.__init__(self)
     # Exposed Errata functions:
     self.functions = []
     self.functions.append("GetByPackage")  # Clients v1-
     self.functions.append("getPackageErratum")  # Clients v2+
     self.functions.append("getErrataInfo")  # clients v2+
     self.functions.append("getErrataNamesById")
コード例 #7
0
ファイル: auth.py プロジェクト: uyuni-project/uyuni
    def __init__(self):
        log_debug(3)
        rhnHandler.__init__(self)
        self.functions.append('check')
        self.functions.append('login')

        # this is populated directly by server.apacheRequest.py
        self.remote_hostname = ''
コード例 #8
0
ファイル: auth.py プロジェクト: TJM/spacewalk
    def __init__(self):
        log_debug(3)
        rhnHandler.__init__(self)
        self.functions.append('check')
        self.functions.append('login')

        # this is populated directly by server.apacheRequest.py
        self.remote_hostname = ''
コード例 #9
0
ファイル: configFilesHandler.py プロジェクト: TJM/spacewalk
 def __init__(self):
     log_debug(3)
     rhnHandler.__init__(self)
     self.functions = {
         'rhn_login': '******',
         'test_session': 'test_session',
         'max_upload_fsize': 'max_upload_file_size',
     }
     self.org_id = None
コード例 #10
0
 def __init__(self):
     log_debug(3)
     rhnHandler.__init__(self)
     self.functions = {
         'rhn_login': '******',
         'test_session': 'test_session',
         'max_upload_fsize': 'max_upload_file_size',
     }
     self.org_id = None
コード例 #11
0
    def __init__(self, req):
        rhnHandler.__init__(self)
        dumper.XML_Dumper.__init__(self)
        self.headers_out = UserDictCase()
        self._raw_stream = req
        self._raw_stream.content_type = 'application/octet-stream'
        self.compress_level = 0
        # State machine
        self._headers_sent = 0
        self._is_closed = 0
        self._compressed_stream = None

        self.functions = [
            'arches',
            'arches_extra',
            'channel_families',
            'channels',
            'get_comps',
            'get_modules',
            'channel_packages_short',
            'packages_short',
            'packages',
            'source_packages',
            'errata',
            'blacklist_obsoletes',
            'product_names',
            'get_rpm',
            'kickstartable_trees',
            'get_ks_file',
            'orgs',
        ]

        self.system_id = None
        self._channel_family_query_template = """
            select cfm.channel_family_id, 0 quantity
              from rhnChannelFamilyMembers cfm,
                   rhnChannel c, rhnChannelFamily cf
             where cfm.channel_id = c.id
               and c.label in (%s)
               and cfm.channel_family_id = cf.id
               and cf.label != 'rh-public'
               and (cf.org_id in (%s)
                   or cf.org_id is null)
            union
            select id channel_family_id, NULL quantity
              from rhnChannelFamily
             where label = 'rh-public'
        """
        self._channel_family_query_public = """
            select id channel_family_id, 0 quantity
              from rhnChannelFamily
             where org_id in (%s)
                or org_id is null
        """
        self._channel_family_query = None
コード例 #12
0
ファイル: auth.py プロジェクト: bjmingyang/spacewalk
    def __init__(self):
        log_debug(3)
        rhnHandler.__init__(self)
        self.functions.append('check')
        self.functions.append('login')
        
        # our own defaults for authentication
        self.check_for_abuse = 0

        # this is populated directly by server.apacheRequest.py
        self.remote_hostname = ''
コード例 #13
0
ファイル: queue.py プロジェクト: NehaRawat/spacewalk
    def __init__(self):
        """ Add a list of functions we are willing to server out. """
        rhnHandler.__init__(self)
        self.functions.append("get")
        self.functions.append("get_future_actions")
        self.functions.append("length")
        self.functions.append("submit")

        # XXX I am not proud of this. There should be a generic way to map
        # the client's error codes into success status codes
        self.action_type_completed_codes = {"errata.update": {39: None}}
コード例 #14
0
ファイル: abrt.py プロジェクト: dewayneHat/spacewalk
    def __init__(self):
        rhnHandler.__init__(self)
        self.functions.append('create_crash')
        self.functions.append('update_crash_count')
        self.functions.append('upload_crash_file')
        self.functions.append('is_crashfile_upload_enabled')
        self.functions.append('get_crashfile_uploadlimit')

        self.watched_items = [
            'analyzer', 'architecture', 'cmdline', 'component', 'count',
            'executable', 'kernel', 'reason', 'username', 'uuid'
        ]
コード例 #15
0
ファイル: queue.py プロジェクト: dewayneHat/spacewalk
    def __init__(self):
        """ Add a list of functions we are willing to server out. """
        rhnHandler.__init__(self)
        self.functions.append('get')
        self.functions.append('get_future_actions')
        self.functions.append('length')
        self.functions.append('submit')

        # XXX I am not proud of this. There should be a generic way to map
        # the client's error codes into success status codes
        self.action_type_completed_codes = {
            'errata.update': {
                39: None,
            },
        }
コード例 #16
0
ファイル: abrt.py プロジェクト: dewayneHat/spacewalk
    def __init__(self):
        rhnHandler.__init__(self)
        self.functions.append('create_crash')
        self.functions.append('update_crash_count')
        self.functions.append('upload_crash_file')
        self.functions.append('is_crashfile_upload_enabled')
        self.functions.append('get_crashfile_uploadlimit')

        self.watched_items = ['analyzer',
                              'architecture',
                              'cmdline',
                              'component',
                              'count',
                              'executable',
                              'kernel',
                              'reason',
                              'username',
                              'uuid']
コード例 #17
0
ファイル: registration.py プロジェクト: dmacvicar/spacewalk
    def __init__(self):
        rhnHandler.__init__(self)
        self.functions.append("activate_registration_number")
        self.functions.append("activate_hardware_info")
        self.functions.append("available_eus_channels")
        self.functions.append("add_hw_profile")
        self.functions.append("add_packages")
        self.functions.append("anonymous")
        self.functions.append("delete_packages")
        self.functions.append("delta_packages")
        self.functions.append("finish_message")
        self.functions.append("get_possible_orgs")
        self.functions.append("new_system")
        self.functions.append("new_system_user_pass")
##        self.functions.append("new_system_activation_key")
        self.functions.append("new_user")               # obsoleted
        self.functions.append("privacy_statement")
        self.functions.append("refresh_hw_profile")
        self.functions.append("register_osad")
        self.functions.append("register_osad_jid")
        self.functions.append("register_product")
        self.functions.append("remaining_subscriptions")# obsoleted
        self.functions.append("reserve_user")           # obsoleted
        self.functions.append("send_serial")
        self.functions.append("upgrade_version")
        self.functions.append("update_contact_info")    # obsoleted
        self.functions.append("update_packages")
        self.functions.append("update_transactions")
        self.functions.append("virt_notify")
        self.functions.append("welcome_message")

        # defaults for the authentication section
        self.load_user = 0
        self.check_entitlement = 0
        self.throttle = 0

        # a mapping between vendor and asset tags or serial numbers.
        # if we want to support other vendors for re
        self.vendor_tags = {'DELL':'smbios.system.serial'}
コード例 #18
0
ファイル: registration.py プロジェクト: glubbered/spacewalk
    def __init__(self):
        rhnHandler.__init__(self)
        self.functions.append("activate_registration_number")
        self.functions.append("activate_hardware_info")
        self.functions.append("available_eus_channels")
        self.functions.append("add_hw_profile")
        self.functions.append("add_packages")
        self.functions.append("anonymous")
        self.functions.append("delete_packages")
        self.functions.append("delta_packages")
        self.functions.append("finish_message")
        self.functions.append("get_possible_orgs")
        self.functions.append("new_system")
        self.functions.append("new_system_user_pass")
##        self.functions.append("new_system_activation_key")
        self.functions.append("new_user")               # obsoleted
        self.functions.append("privacy_statement")
        self.functions.append("refresh_hw_profile")
        self.functions.append("register_osad")
        self.functions.append("register_osad_jid")
        self.functions.append("register_product")
        self.functions.append("remaining_subscriptions")# obsoleted
        self.functions.append("reserve_user")           # obsoleted
        self.functions.append("send_serial")
        self.functions.append("upgrade_version")
        self.functions.append("update_contact_info")    # obsoleted
        self.functions.append("update_packages")
        self.functions.append("update_transactions")
        self.functions.append("virt_notify")
        self.functions.append("welcome_message")

        # defaults for the authentication section
        self.load_user = 0
        self.check_entitlement = 0
        self.throttle = 0

        # a mapping between vendor and asset tags or serial numbers.
        # if we want to support other vendors for re
        self.vendor_tags = {'DELL':'smbios.system.serial'}
コード例 #19
0
ファイル: up2date.py プロジェクト: wraiden/spacewalk
    def __init__(self):
        """ Up2date Class Constructor

           o Initializes inherited class.
           o Appends the functions available to the outside world in the
             rhnHandler list.
        """
        rhnHandler.__init__(self)
        # Function list inherited from rhnHandler
        # This action garners control of what is available to the client.

        # --- Clients v2+ ---
        # (getting headers, source and packages done with GETs now).
        self.functions.append('login')
        self.functions.append('listChannels')
        self.functions.append('subscribeChannels')
        self.functions.append('unsubscribeChannels')
        self.functions.append('history')
        self.functions.append('solvedep')
        self.functions.append('solveDependencies')
        self.functions.append('solveDependencies_arch')
        self.functions.append('solveDependencies_with_limits')
コード例 #20
0
ファイル: proxy.py プロジェクト: cliffy94/spacewalk
 def __init__(self):
     rhnHandler.__init__(self)
コード例 #21
0
ファイル: up2date.py プロジェクト: Kilian-Petsch/spacewalk
 def __init__(self):
     """Servers Class Constructor. """
     rhnHandler.__init__(self)
     self.functions.append('get')
     self.functions.append('list')
コード例 #22
0
 def __init__(self):
     rhnHandler.__init__(self)
コード例 #23
0
ファイル: up2date.py プロジェクト: wraiden/spacewalk
 def __init__(self):
     """Servers Class Constructor. """
     rhnHandler.__init__(self)
     self.functions.append('get')
     self.functions.append('list')
コード例 #24
0
 def __init__(self):
     rhnHandler.__init__(self)
     self.functions.append('upload_result')
コード例 #25
0
ファイル: scap.py プロジェクト: TJM/spacewalk
 def __init__(self):
     rhnHandler.__init__(self)
     self.functions.append('upload_result')