Home | Trees | Index | Help |
|
---|
Package openid :: Package server :: Module server :: Class OpenIDResponse |
|
object
--+
|
OpenIDResponse
Method Summary | |
---|---|
Make a response to an OpenIDRequest . | |
__str__(self)
| |
None |
Add an extension response to this response message. |
str |
Encode a response in key-value colon/newline format. |
str |
Encode a response as a URL for the user agent to GET. |
bool |
Does this response require signing? |
bool |
Returns True if this response's encoding is ENCODE_HTML_FORM. |
str |
Returns the form markup for this response. |
str |
Returns an HTML document that auto-submits the form markup for this response. |
How should I be encoded? | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|
Instance Variable Summary | |
---|---|
openid.message.Message |
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. |
Method Details |
---|
__init__(self,
request)
Make a response to an |
addExtension(self, extension_response)Add an extension response to this response message.
|
encodeToKVForm(self)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.
|
encodeToURL(self)Encode a response as a URL for the user agent to GET. You will generally use this URL with a HTTP redirect.
|
needsSigning(self)Does this response require signing?
|
renderAsForm(self)Returns True if this response's encoding is ENCODE_HTML_FORM. Convenience method for server authors.
|
toFormMarkup(self, form_tag_attrs=None)Returns the form markup for this response.
|
toHTML(self, form_tag_attrs=None)Returns an HTML document that auto-submits the form markup for this response.
|
whichEncoding(self)How should I be encoded?
|
Instance Variable Details |
---|
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 | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 27 15:48:22 2008 | http://epydoc.sf.net |