Home | Trees | Index | Help |
|
---|
Package openid :: Package extensions :: Module sreg :: Class SRegRequest |
|
object
--+ |Extension
--+ | SRegRequest
Method Summary | |
---|---|
Initialize an empty simple registration request | |
Was this field in the request? | |
[str] |
A list of all of the simple registration fields that were requested, whether they were required or optional. |
bool |
Have any simple registration fields been requested? |
Inherited from Extension :
toMessage
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
| |
Consumer | |
Request the specified field from the OpenID user | |
Add the given list of fields to the request | |
{str:str} |
Get a dictionary of unqualified simple registration arguments representing this request. |
Server | |
|
Create a simple registration request that contains the fields that were requested in the OpenID request with the given arguments (Class method) |
Parse the unqualified simple registration request parameters and add them to this object. |
Instance Variable Summary | |
---|---|
[str] | optional : A list of the optional fields in this simple registration request |
str or NoneType | policy_url : The policy URL that was provided with the request |
[str] | required : A list of the required fields in this simple registration request |
Inherited from Extension :
ns_uri
|
Class Variable Summary | |
---|---|
str |
ns_alias = 'sreg'
|
Instance Method Details |
---|
requestField(self, field_name, required=False, strict=False)Request the specified field from the OpenID user
|
requestFields(self, field_names, required=False, strict=False)Add the given list of fields to the request
|
getExtensionArgs(self)Get a dictionary of unqualified simple registration arguments representing this request. This method is essentially the inverse of . This method
serializes the simple registration request fields.
|
parseExtensionArgs(self, args, strict=False)Parse the unqualified simple registration request parameters and add them to this object. This method is essentially the inverse of , which will
extract the sreg namespace and arguments from the OpenID request. This
method is intended for cases where the OpenID server needs more control
over how the arguments are parsed than that method provides.
>>> args = message.getArgs(ns_uri)
>>> request.parseExtensionArgs(args)
|
__init__(self,
required=None,
optional=None,
policy_url=None,
sreg_ns_uri='http://openid.net/extensions/sreg/1.1')
Initialize an empty simple registration request
|
__contains__(self,
field_name)
Was this field in the request?
|
allRequestedFields(self)A list of all of the simple registration fields that were requested, whether they were required or optional.
|
wereFieldsRequested(self)Have any simple registration fields been requested?
|
Class Method Details |
---|
fromOpenIDRequest(cls, request)Create a simple registration request that contains the fields that were requested in the OpenID request with the given arguments
|
Instance Variable Details |
---|
optionalA list of the optional fields in this simple registration request
|
policy_urlThe policy URL that was provided with the request
|
requiredA list of the required fields in this simple registration request
|
Class Variable Details |
---|
ns_alias
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 6 15:54:34 2008 | http://epydoc.sf.net |