Package yadis :: Module manager :: Class YadisServiceManager
[hide private]
[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 [hide private]
  __init__(self, starting_url, yadis_url, services, session_key)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __len__(self)
How many untried services remain?
  __iter__(self)
  next(self)
Return the next service
  current(self)
Return the current service.
  forURL(self, url)
  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__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__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)

__len__(self)
(Length operator)

source code 

How many untried services remain?

__iter__(self)

source code 

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.

forURL(self, url)

source code 

started(self)

source code 

Has the first service been returned?

store(self, session)

source code 

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