Package funkload :: Module CredentialRandom :: Class CredentialRandomServer
[show private | hide private]
[frames | no frames]

Class CredentialRandomServer

CredentialBaseServer --+
                       |
    XmlRpcBaseServer --+
                       |
                      CredentialRandomServer


A random credential server.
Method Summary
  __init__(self, argv)
  getCredential(self, group)
Return a random (login, password).
  listCredentials(self, group)
Return a list of 10 random credentials.
  listGroups(self)
Retrun a list of 10 random group name.
    Inherited from XmlRpcBaseServer
  __call__(self)
main server loop.
  getStatus(self)
Return a status.
  initServer(self)
init the XMLR/PC Server.
  log(self, message)
Log information.
  logd(self, message)
Debug log.
  parseArgs(self, argv)
Parse programs args.
  run(self)
main server loop.
  stopServer(self)
Stop the server.

Class Variable Summary
list method_names = ['stopServer', 'getStatus', 'getCredentia...
str server_name = 'random_credential'
    Inherited from XmlRpcBaseServer
str usage = '%prog [options] config_file\n\nStart %prog XML/...

Method Details

getCredential(self, group=None)

Return a random (login, password).

return a random user login, the login is taken from the lipsum vocabulary so the number of login is limited to the length of the vocabulary. The group asked will prefix the login name.

The password is just the reverse of the login, this give a coherent behaviour if it return twice the same credential.
Overrides:
funkload.CredentialBase.CredentialBaseServer.getCredential

listCredentials(self, group=None)

Return a list of 10 random credentials.
Overrides:
funkload.CredentialBase.CredentialBaseServer.listCredentials

listGroups(self)

Retrun a list of 10 random group name.
Overrides:
funkload.CredentialBase.CredentialBaseServer.listGroups

Class Variable Details

method_names

Type:
list
Value:
['stopServer', 'getStatus', 'getCredential', 'listCredentials', 'listG\
roups']                                                                

server_name

Type:
str
Value:
'random_credential'                                                    

Generated by Epydoc 2.1 on Tue Feb 27 10:41:43 2007 http://epydoc.sf.net