Package openid :: Package extensions :: Module ax :: Class AXMessage
[hide private]
[frames] | no frames]

Class AXMessage

source code

         object --+    
                  |    
extension.Extension --+
                      |
                     AXMessage
Known Subclasses:

Abstract class containing common code for attribute exchange messages

Instance Methods [hide private]
 
_checkMode(self, ax_args)
Raise an exception if the mode in the attribute exchange arguments does not match what is expected for this class.
source code
 
_newArgs(self)
Return a set of attribute exchange arguments containing the basic information that must be in every attribute exchange message.
source code

Inherited from extension.Extension: getExtensionArgs, toMessage

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

Class Variables [hide private]
  ns_alias = 'ax'
The preferred namespace alias for attribute exchange messages
  mode = None
The type of this attribute exchange message.
  ns_uri = 'http://openid.net/srv/ax/1.0'
The namespace to which to add the arguments for this extension
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_checkMode(self, ax_args)

source code 

Raise an exception if the mode in the attribute exchange arguments does not match what is expected for this class.

Raises:
  • NotAXMessage - When there is no mode value in ax_args at all.
  • AXError - When mode does not match.

Class Variable Details [hide private]

mode

The type of this attribute exchange message. This must be overridden in subclasses.
Value:
None