Home | Trees | Indices | Help |
|
---|
|
object --+ | Discovery
State management for discovery.
High-level usage pattern is to call .getNextService(discover) in order to find the next available service for this user for this session. Once a request completes, call .finish() to clean up the session state.
|
|||
__init__(self,
session,
url,
session_key_suffix=None) Initialize a discovery object |
|||
getNextService(self,
discover) Return the next authentication service for the pair of user_input and session. |
|||
cleanup(self) Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists. |
|||
str |
getSessionKey(self) Get the session key for this starting URL and suffix |
||
getManager(self) Extract the YadisServiceManager for this object's URL and suffix from the session. |
|||
createManager(self,
services,
yadis_url=None) Create a new YadisService Manager for this starting URL and suffix, and store it in the session. |
|||
destroyManager(self) Delete any YadisServiceManager with this starting URL and suffix from the session. |
|||
Inherited from |
|
|||
DEFAULT_SUFFIX = 'auth'
|
|||
PREFIX = '_yadis_services_'
|
|
|||
session a dict-like object that stores state unique to the requesting user-agent. |
|||
session_key_suffix The suffix that will be used to identify this object in the session object. |
|||
url the URL that is used to make the discovery request |
|
|||
Inherited from |
|
Initialize a discovery object
|
Return the next authentication service for the pair of user_input and session. This function handles fallback.
|
Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists.
|
Get the session key for this starting URL and suffix
|
Extract the YadisServiceManager for this object's URL and suffix from the session.
|
Create a new YadisService Manager for this starting URL and suffix, and store it in the session.
|
Delete any YadisServiceManager with this starting URL and suffix from the session. If there is no service manager or the service manager is for a different URL, it silently does nothing. |
|
DEFAULT_SUFFIX
|
PREFIX
|
|
sessiona dict-like object that stores state unique to the requesting user-agent. This object must be able to store serializable objects. |
session_key_suffixThe suffix that will be used to identify this object in the session object. |
urlthe URL that is used to make the discovery request |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 8 13:17:18 2006 | http://epydoc.sourceforge.net |