本文整理汇总了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+
开发者ID:bjmingyang,项目名称:spacewalk,代码行数:7,代码来源:errata.py
示例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')
开发者ID:bjmingyang,项目名称:spacewalk,代码行数:30,代码来源:up2date.py
示例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")
开发者ID:cliffy94,项目名称:spacewalk,代码行数:8,代码来源:applet.py
示例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 = ''
开发者ID:TJM,项目名称:spacewalk,代码行数:8,代码来源:auth.py
示例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")
开发者ID:kidaa30,项目名称:spacewalk,代码行数:8,代码来源:errata.py
示例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
开发者ID:TJM,项目名称:spacewalk,代码行数:9,代码来源:configFilesHandler.py
示例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
开发者ID:mcalmer,项目名称:spacewalk,代码行数:55,代码来源:non_auth_dumper.py
示例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 = ''
开发者ID:bjmingyang,项目名称:spacewalk,代码行数:11,代码来源:auth.py
示例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}}
开发者ID:NehaRawat,项目名称:spacewalk,代码行数:11,代码来源:queue.py
示例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']
开发者ID:dewayneHat,项目名称:spacewalk,代码行数:18,代码来源:abrt.py
示例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'}
开发者ID:glubbered,项目名称:spacewalk,代码行数:39,代码来源:registration.py
示例12: __init__
def __init__(self):
rhnHandler.__init__(self)
self.functions.append('upload_result')
开发者ID:TJM,项目名称:spacewalk,代码行数:3,代码来源:scap.py
示例13: __init__
def __init__(self):
"""Servers Class Constructor. """
rhnHandler.__init__(self)
self.functions.append('get')
self.functions.append('list')
开发者ID:Kilian-Petsch,项目名称:spacewalk,代码行数:5,代码来源:up2date.py
示例14: __init__
def __init__(self):
rhnHandler.__init__(self)
开发者ID:cliffy94,项目名称:spacewalk,代码行数:2,代码来源:proxy.py
注:本文中的spacewalk.server.rhnHandler.rhnHandler.__init__函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论