Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.tests.base.security.AnonymousUser Class Reference
Inheritance diagram for CMFCore.tests.base.security.AnonymousUser:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.base.security.AnonymousUser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getId
def has_permission
def allowed
def getRoles

Static Public Attributes

 getUserName = getId

Detailed Description

  Anonymous USer for unit testing purposes.

Definition at line 100 of file security.py.


Member Function Documentation

def CMFCore.tests.base.security.AnonymousUser.allowed (   self,
  object,
  object_roles = None 
)

Definition at line 113 of file security.py.

00113 
00114     def allowed( self, object, object_roles=None ):
00115         # for testing permissions on actions
00116         if object.getId() == 'actions_dummy':
00117             if 'Anonymous' in object_roles:
00118                 return 1
00119             else:
00120                 return 0
00121         return 1

Here is the caller graph for this function:

Definition at line 104 of file security.py.

00104 
00105     def getId( self ):
00106         return 'Anonymous User'

Definition at line 122 of file security.py.

00122 
00123     def getRoles(self):
00124         return ('Anonymous',)

Here is the caller graph for this function:

def CMFCore.tests.base.security.AnonymousUser.has_permission (   self,
  permission,
  obj 
)

Definition at line 109 of file security.py.

00109 
00110     def has_permission(self, permission, obj):
00111         # For types tool tests dealing with filtered_meta_types
00112         return 1


Member Data Documentation

Definition at line 107 of file security.py.


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