Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
borg.localrole.tests.SimpleLocalRoleProvider Class Reference

List of all members.

Public Member Functions

def __init__
def getRoles
def getAllRoles

Public Attributes

 context

Detailed Description

Definition at line 26 of file tests.py.


Constructor & Destructor Documentation

Definition at line 28 of file tests.py.

00028 
00029     def __init__(self, context):
00030         self.context = context

Here is the caller graph for this function:


Member Function Documentation

In the real world we would enumerate all users and
grant the 'Foo' role to each, but we won't

Definition at line 35 of file tests.py.

00035 
00036     def getAllRoles(self):
00037         """In the real world we would enumerate all users and
00038         grant the 'Foo' role to each, but we won't"""
00039         yield ('bogus_user', ('Foo',))
00040 

Grant everyone the 'Foo' role

Definition at line 31 of file tests.py.

00031 
00032     def getRoles(self, user):
00033         """Grant everyone the 'Foo' role"""
00034         return ('Foo',)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 29 of file tests.py.


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