Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluggableAuthService.tests.test_PluggableAuthService.DummyCredentialsStore Class Reference
Inheritance diagram for PluggableAuthService.tests.test_PluggableAuthService.DummyCredentialsStore:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.tests.test_PluggableAuthService.DummyCredentialsStore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def updateCredentials
def resetCredentials
def extractCredentials

Public Attributes

 id
 creds

Detailed Description

Definition at line 163 of file test_PluggableAuthService.py.


Constructor & Destructor Documentation

Definition at line 165 of file test_PluggableAuthService.py.

00165 
00166     def __init__(self, id):
00167         self.id = id
00168         self.creds = {}


Member Function Documentation

Definition at line 176 of file test_PluggableAuthService.py.

00176 
00177     def extractCredentials(self, request):
00178         creds = {}
00179         login = request['login']
00180 
00181         if self.creds.get(login) is not None:
00182             creds['login'] = login
00183             creds['password'] = self.creds.get(login)
00184 
00185         return creds

Definition at line 172 of file test_PluggableAuthService.py.

00172 
00173     def resetCredentials(self, request, response):
00174         login = request['login']
00175         del self.creds[login]

def PluggableAuthService.tests.test_PluggableAuthService.DummyCredentialsStore.updateCredentials (   self,
  request,
  response,
  login,
  password 
)

Definition at line 169 of file test_PluggableAuthService.py.

00169 
00170     def updateCredentials(self, request, response, login, password):
00171         self.creds[login] = password


Member Data Documentation

Definition at line 167 of file test_PluggableAuthService.py.

Definition at line 166 of file test_PluggableAuthService.py.


The documentation for this class was generated from the following file: