Package openid :: Module extension :: Class Extension
[frames] | no frames]

Class Extension

source code

object --+
         |
        Extension
Known Subclasses:

An interface for OpenID extensions.

Instance Methods
 
getExtensionArgs(self)
Get the string arguments that should be added to an OpenID message for this extension.
source code
 
toMessage(self, message=None)
Add the arguments from this extension to the provided message, or create a new message containing only those arguments.
source code

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

Class Variables
  ns_alias = None
Instance Variables
  ns_uri = None
The namespace to which to add the arguments for this extension
Properties

Inherited from object: __class__

Method Details

getExtensionArgs(self)

source code 

Get the string arguments that should be added to an OpenID message for this extension.

Returns:
A dictionary of completely non-namespaced arguments to be added. For example, if the extension's alias is 'uncle', and this method returns {'meat':'Hot Rats'}, the final message will contain {'openid.uncle.meat':'Hot Rats'}

toMessage(self, message=None)

source code 

Add the arguments from this extension to the provided message, or create a new message containing only those arguments.

Returns:
The message with the extension arguments added