本文整理汇总了Python中openid.extension.Extension类的典型用法代码示例。如果您正苦于以下问题:Python Extension类的具体用法?Python Extension怎么用?Python Extension使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Extension类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, requested=None):
"""Initialize an empty teams extension request"""
Extension.__init__(self)
self.requested = []
if requested:
self.requestTeams(requested)
示例2: __init__
def __init__(self, data=None, sreg_ns_uri=ns_uri):
Extension.__init__(self)
if data is None:
self.data = {}
else:
self.data = data
self.ns_uri = sreg_ns_uri
示例3: __init__
def __init__(self, is_member=None, lp_ns_uri=ns_uri):
Extension.__init__(self)
if is_member is None:
self.is_member = []
else:
self.is_member = is_member
self.ns_uri = lp_ns_uri
示例4: __init__
def __init__(self, langs=None, ui_mode=None, check_session=None, icon=None,
ui_ns_uri=ns_uri):
"""Initialize an empty UI hinting request"""
Extension.__init__(self)
self.ns_uri = ui_ns_uri
if check_session and ui_mode not in (None, UI_MODE_CHECK_SESSION):
raise ValueError( \
"invalid combination of ui_mode %r / check_session %r" \
% (ui_mode, check_session))
if check_session:
ui_mode = UI_MODE_CHECK_SESSION
self.ui_mode = ui_mode
self.icon = icon
self.langs = langs
示例5: __init__
def __init__(self, requested=None):
Extension.__init__(self)
self.requested = []
if requested:
self.requestCLAs(requested)
示例6: __init__
def __init__(self, request_token=None, scope=None):
Extension.__init__(self)
self.ns_uri = ns_uri
self.request_token = request_token
self.scope = scope
示例7: __init__
def __init__(self):
Extension.__init__(self)
self.authorized_request_token = None
示例8: __init__
def __init__(self, mode=None, icon=False):
Extension.__init__(self)
self.mode = mode
self.icon = icon