def __init__(self, requested=None): """Initialize an empty teams extension request""" Extension.__init__(self) self.requested = [] if requested: self.requestTeams(requested)
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
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
def __init__(self, query_membership=None, lp_ns_uri=ns_uri): """Initialize an empty Launchpad teams request""" Extension.__init__(self) self.query_membership = [] self.ns_uri = lp_ns_uri if query_membership: self.requestTeams(query_membership)
def __init__(self, required=None, optional=None, policy_url=None, sreg_ns_uri=ns_uri): """Initialize an empty simple registration request""" Extension.__init__(self) self.required = [] self.optional = [] self.policy_url = policy_url self.ns_uri = sreg_ns_uri if required: self.requestFields(required, required=True, strict=True) if optional: self.requestFields(optional, required=False, strict=True)
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
def __init__(self, clas=None): Extension.__init__(self) if clas is None: self.clas = [] else: self.clas = clas
def __init__(self, requested=None): Extension.__init__(self) self.requested = [] if requested: self.requestCLAs(requested)
def __init__(self, request_token=None, scope=None): Extension.__init__(self) self.ns_uri = ns_uri self.request_token = request_token self.scope = scope
def __init__(self, consumer=None, scope=None, oauth_ns_uri=ns_uri): Extension.__init__(self) self.consumer = consumer self.scope = scope self.ns_uri = oauth_ns_uri
def __init__(self): Extension.__init__(self) self.authorized_request_token = None
def __init__(self, consumer, scope): Extension.__init__(self) self.consumer = consumer self.scope = scope
def __init__(self, teams=None): Extension.__init__(self) if teams is None: self.teams = [] else: self.teams = teams
def __init__(self, has_session=None, ui_ns_uri=ns_uri): Extension.__init__(self) self.ns_uri = ui_ns_uri self.has_session = has_session
def __init__(self, consumer, scope, ns_uri=None): Extension.__init__(self) self.consumer = consumer self.scope = scope self.ns_uri = ns_uri or oauth_ns_uri
def __init__(self, caveat_id=None, macaroon_ns_uri=MACAROON_NS): """Initialize an empty discharge macaroon request.""" Extension.__init__(self) self.caveat_id = caveat_id self.ns_uri = macaroon_ns_uri
def __init__(self, mode=None, icon=False): Extension.__init__(self) self.mode = mode self.icon = icon
def __init__(self, discharge_macaroon_raw=None, macaroon_ns_uri=MACAROON_NS): Extension.__init__(self) self.discharge_macaroon_raw = discharge_macaroon_raw self.ns_uri = macaroon_ns_uri