Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.tests.testSecurityDeclarations.RestrictedPythonTest Class Reference
Inheritance diagram for CMFPlone.tests.testSecurityDeclarations.RestrictedPythonTest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def addPS
def check
def checkUnauthorized

Detailed Description

Definition at line 18 of file testSecurityDeclarations.py.


Member Function Documentation

def CMFPlone.tests.testSecurityDeclarations.RestrictedPythonTest.addPS (   self,
  id,
  params = '',
  body = '' 
)

Definition at line 20 of file testSecurityDeclarations.py.

00020 
00021     def addPS(self, id, params='', body=''):
00022         factory = self.folder.manage_addProduct['PythonScripts']
00023         factory.manage_addPythonScript(id)
00024         self.folder[id].ZPythonScript_edit(params, body)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 25 of file testSecurityDeclarations.py.

00025 
00026     def check(self, psbody):
00027         self.addPS('ps', body=psbody)
00028         try:
00029             self.folder.ps()
00030         except (ImportError, Unauthorized), e:
00031             self.fail(e)

Here is the call graph for this function:

Definition at line 32 of file testSecurityDeclarations.py.

00032 
00033     def checkUnauthorized(self, psbody):
00034         self.addPS('ps', body=psbody)
00035         try:
00036             self.folder.ps()
00037         except (AttributeError, ImportError, Unauthorized):
00038             pass
00039 

Here is the call graph for this function:

Here is the caller graph for this function:


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