本文整理汇总了Python中spacewalk.server.rhnHandler.rhnHandler.__init__函数的典型用法代码示例。如果您正苦于以下问题:Python __init__函数的具体用法?Python __init__怎么用?Python __init__使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了__init__函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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: __init__
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: __init__
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: __init__
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 = ''
示例5: __init__
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")
示例6: __init__
def __init__(self):
log_debug(3)
rhnHandler.__init__(self)
self.functions = {
'rhn_login': 'login',
'test_session': 'test_session',
'max_upload_fsize': 'max_upload_file_size',
}
self.org_id = None
示例7: __init__
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
示例8: __init__
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 = ''
示例9: __init__
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}}
示例10: __init__
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']
示例11: __init__
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'}
示例12: __init__
def __init__(self):
rhnHandler.__init__(self)
self.functions.append('upload_result')
示例13: __init__
def __init__(self):
"""Servers Class Constructor. """
rhnHandler.__init__(self)
self.functions.append('get')
self.functions.append('list')
示例14: __init__
def __init__(self):
rhnHandler.__init__(self)