Home | Trees | Indices | Help |
|
---|
|
object --+ | OpenIDResponse
|
|||
__init__(self,
request) Make a response to an OpenIDRequest. |
|||
addField(self,
namespace,
key,
value,
signed=True) Add a field to this response. |
|||
addFields(self,
namespace,
fields,
signed=True) Add a number of fields to this response. |
|||
update(self,
namespace,
other) Update my fields with those from another OpenIDResponse. |
|||
bool |
needsSigning(self) Does this response require signing? |
||
whichEncoding(self) How should I be encoded? |
|||
str |
encodeToURL(self) Encode a response as a URL for the user agent to GET. |
||
str |
encodeToKVForm(self) Encode a response in key-value colon/newline format. |
||
__str__(self) str(x) |
|||
Inherited from |
|
|||
dict |
fields My parameters as a dictionary with each key mapping to one value. |
||
OpenIDRequest |
request The request I respond to. |
||
list of str |
signed The names of the fields which should be signed. |
|
|||
Inherited from |
|
Make a response to an OpenIDRequest.
|
Add a field to this response.
|
Add a number of fields to this response.
|
Update my fields with those from another OpenIDResponse. The idea here is that if you write an OpenID extension, it could
produce a Response object with other.fields will have their keys prefixed
with namespace and added to my fields. All elements of
other.signed will be prefixed with namespace
and added to my signed list.
|
Does this response require signing?
|
How should I be encoded?
|
Encode a response as a URL for the user agent to GET. You will generally use this URL with a HTTP redirect.
|
Encode a response in key-value colon/newline format. This is a machine-readable format used to respond to messages which came directly from the consumer and not through the user agent.
|
str(x)
|
|
fieldsMy parameters as a dictionary with each key mapping to one value. Keys are parameter names with no leading " openid. ". e.g. "identity "
and "mac_key ", never
"openid.identity ".
|
requestThe request I respond to.
|
signedThe names of the fields which should be signed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 8 13:26:20 2006 | http://epydoc.sourceforge.net |