Home | Trees | Index | Help |
|
---|
Package openid :: Package yadis :: Module manager :: Class Discovery |
|
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.Method Summary | |
---|---|
Initialize a discovery object | |
Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists. | |
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. | |
Extract the YadisServiceManager for this object's URL and suffix from the session. | |
Return the next authentication service for the pair of user_input and session. | |
str |
Get the session key for this starting URL and suffix |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
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 |
Class Variable Summary | |
---|---|
str |
DEFAULT_SUFFIX = 'auth'
|
str |
PREFIX = '_yadis_services_'
|
Method Details |
---|
__init__(self,
session,
url,
session_key_suffix=None)
Initialize a discovery object
|
cleanup(self, force=False)Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists.
|
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, force=False)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.
|
getManager(self, force=False)Extract the YadisServiceManager for this object's URL and suffix from the session.
|
getNextService(self, discover)Return the next authentication service for the pair of user_input and session. This function handles fallback.
|
getSessionKey(self)Get the session key for this starting URL and suffix
|
Instance Variable Details |
---|
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 |
Class Variable Details |
---|
DEFAULT_SUFFIX
|
PREFIX
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 6 15:54:34 2008 | http://epydoc.sf.net |