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

Type Extension

object --+
         |
        Extension

Known Subclasses:
Request, Response, SRegRequest, SRegResponse

An interface for OpenID extensions.
Method Summary
  getExtensionArgs(self)
Get the string arguments that should be added to an OpenID message for this extension.
  toMessage(self, message)
Add the arguments from this extension to the provided message, or create a new message containing only those arguments.
Inherited from object: __init__, __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
NoneType ns_uri: The namespace to which to add the arguments for this extension

Class Variable Summary
NoneType ns_alias = None                                                                  

Method Details

getExtensionArgs(self)

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)

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

Instance Variable Details

ns_uri

The namespace to which to add the arguments for this extension
Type:
NoneType
Value:
None                                                                  

Class Variable Details

ns_alias

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri Jun 27 15:48:22 2008 http://epydoc.sf.net