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

Type YadisServiceManager

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.
Method Summary
  __init__(self, starting_url, yadis_url, services, session_key)
  __iter__(self)
  __len__(self)
How many untried services remain?
  current(self)
Return the current service.
  forURL(self, url)
  next(self)
Return the next service
  started(self)
Has the first service been returned?
  store(self, session)
Store this object in the session, by its session key.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

__len__(self)
(Length operator)

How many untried services remain?

current(self)

Return the current service.

Returns None if there are no services left.

next(self)

Return the next service

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

started(self)

Has the first service been returned?

store(self, session)

Store this object in the session, by its session key.

Generated by Epydoc 2.1 on Fri Jun 6 15:54:34 2008 http://epydoc.sf.net