Back to index

plone3  3.1.7
Private Member Functions
PluggableAuthService.tests.pastc.PASTestCase Class Reference
Inheritance diagram for PluggableAuthService.tests.pastc.PASTestCase:
Inheritance graph
[legend]

List of all members.

Private Member Functions

def _setupUserFolder
def _setupUser

Detailed Description

ZopeTestCase with a PAS instead of the default user folder

Definition at line 36 of file pastc.py.


Member Function Documentation

Creates the default user.

Definition at line 59 of file pastc.py.

00059 
00060     def _setupUser(self):
00061         """Creates the default user."""
00062         # OMFG, why doesn't PAS support userFolderAddUser?
00063         uf = self.folder.acl_users
00064         uf._doAddUser(user_name, user_password, [user_role], [])
00065 

Here is the caller graph for this function:

Creates a Pluggable Auth Service.

Definition at line 40 of file pastc.py.

00040 
00041     def _setupUserFolder(self):
00042         """Creates a Pluggable Auth Service."""
00043         factory = self.folder.manage_addProduct['PluggableAuthService']
00044         factory.addPluggableAuthService()
00045         pas = self.folder.acl_users
00046         factory = pas.manage_addProduct['PluggableAuthService']
00047         factory.addHTTPBasicAuthHelper('http_auth')
00048         factory.addZODBUserManager('users')
00049         factory.addZODBRoleManager('roles')
00050         plugins = pas.plugins
00051         plugins.activatePlugin(IChallengePlugin, 'http_auth')
00052         plugins.activatePlugin(IExtractionPlugin, 'http_auth')
00053         plugins.activatePlugin(IUserAdderPlugin, 'users')
00054         plugins.activatePlugin(IAuthenticationPlugin, 'users')
00055         plugins.activatePlugin(IUserEnumerationPlugin, 'users')
00056         plugins.activatePlugin(IRolesPlugin, 'roles')
00057         plugins.activatePlugin(IRoleAssignerPlugin, 'roles')
00058         plugins.activatePlugin(IRoleEnumerationPlugin, 'roles')


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