Package openid :: Package yadis :: Module manager :: Class YadisServiceManager
[frames] | no frames]

Class YadisServiceManager

source code

object --+
         |
        YadisServiceManager

Holds the state of a list of selected Yadis services, managing storing it in a session and iterating over the services in order.

Instance Methods
 
__init__(self, starting_url, yadis_url, services, session_key)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__len__(self)
How many untried services remain?
source code
 
__iter__(self) source code
 
next(self)
Return the next service
source code
 
current(self)
Return the current service.
source code
 
forURL(self, url) source code
 
started(self)
Has the first service been returned?
source code
 
store(self, session)
Store this object in the session, by its session key.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, starting_url, yadis_url, services, session_key)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

next(self)

source code 

Return the next service

self.current() will continue to return that service until the next call to this method.

current(self)

source code 

Return the current service.

Returns None if there are no services left.