Home | Trees | Indices | Help |
|
---|
|
object --+ | extension.Extension --+ | SRegRequest
|
|||
__init__(self,
required=None,
optional=None,
policy_url=None,
sreg_ns_uri=ns_uri) Initialize an empty simple registration request |
|||
[str] |
allRequestedFields(self) A list of all of the simple registration fields that were requested, whether they were required or optional. |
||
bool |
wereFieldsRequested(self) Have any simple registration fields been requested? |
||
__contains__(self,
field_name) Was this field in the request? |
|||
Inherited from Inherited from |
|||
Consumer | |||
---|---|---|---|
requestField(self,
field_name,
required=True,
strict=True) Request the specified field from the OpenID user |
|||
requestFields(self,
field_names,
required=True,
strict=True) Add the given list of fields to the request |
|||
{str:str} |
getExtensionArgs(self) Get a dictionary of unqualified simple registration arguments representing this request. |
||
Server | |||
parseExtensionArgs(self,
args,
strict=True) Parse the unqualified simple registration request parameters and add them to this object. |
|
|||
Server | |||
---|---|---|---|
SRegRequest
|
fromOpenIDRequest(cls,
request) Create a simple registration request that contains the fields that were requested in the OpenID request with the given arguments |
|
|||
ns_alias = 'sreg'
|
|
|||
[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 |
|
|||
Inherited from |
|
Initialize an empty simple registration request
|
Create a simple registration request that contains the fields that were requested in the OpenID request with the given arguments
|
Parse the unqualified simple registration request parameters and add them to this object. This method is essentially the inverse of fromOpenIDRequest , 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)
|
A list of all of the simple registration fields that were requested, whether they were required or optional.
|
Have any simple registration fields been requested?
|
Was this field in the request? |
Request the specified field from the OpenID user
|
Add the given list of fields to the request
|
Get a dictionary of unqualified simple registration arguments representing this request. This method is essentially the inverse ofparseExtensionArgs . This method serializes the
simple registration request fields.
|
|
ns_alias
|
|
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
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri May 11 15:30:20 2007 | http://epydoc.sourceforge.net |