Package openid :: Package server :: Module server :: Class Encoder
[frames] | no frames]

Class Encoder

source code

object --+
         |
        Encoder
Known Subclasses:

I encode responses in to WebResponses.

If you don't like WebResponses, you can do your own handling of OpenIDResponses with OpenIDResponse.whichEncoding, OpenIDResponse.encodeToURL, and OpenIDResponse.encodeToKVForm.

Nested Classes
  responseFactory
I am a response to an OpenID request in terms a web server understands.
Instance Methods
 
encode(self, response)
Encode a response to a WebResponse.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

encode(self, response)

source code 

Encode a response to a WebResponse.

Raises:
  • EncodingError - When I can't figure out how to encode this message.