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

Class Encoder

source code

object --+
         |
        Encoder
Known Subclasses:
SigningEncoder

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 [hide private]
  responseFactory
I am a response to an OpenID request in terms a web server understands.

Instance Methods [hide private]
  encode(self, response)
Encode a response to a WebResponse.

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


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

encode(self, response)

source code 

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