Back to index

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

List of all members.

Public Member Functions

def test_aq_explicit
def test_aq_parent
def test_aq_inner
def test_aq_inner_aq_parent
def test_aq_self
def test_aq_base
def test_aq_acquire
def addPS
def check
def checkUnauthorized

Detailed Description

Definition at line 368 of file testSecurityDeclarations.py.


Member Function Documentation

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

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:

Definition at line 388 of file testSecurityDeclarations.py.

00388 
00389     def test_aq_acquire(self):
00390         self.checkUnauthorized('print context.aq_acquire')
00391 

Here is the call graph for this function:

Definition at line 385 of file testSecurityDeclarations.py.

00385 
00386     def test_aq_base(self):
00387         self.checkUnauthorized('print context.aq_base')

Here is the call graph for this function:

Definition at line 370 of file testSecurityDeclarations.py.

00370 
00371     def test_aq_explicit(self):
00372         self.check('print context.aq_explicit')

Here is the call graph for this function:

Definition at line 376 of file testSecurityDeclarations.py.

00376 
00377     def test_aq_inner(self):
00378         self.check('print context.aq_inner')

Here is the call graph for this function:

Definition at line 379 of file testSecurityDeclarations.py.

00379 
00380     def test_aq_inner_aq_parent(self):
00381         self.check('print context.aq_inner.aq_parent')

Here is the call graph for this function:

Definition at line 373 of file testSecurityDeclarations.py.

00373 
00374     def test_aq_parent(self):
00375         self.check('print context.aq_parent')

Here is the call graph for this function:

Definition at line 382 of file testSecurityDeclarations.py.

00382 
00383     def test_aq_self(self):
00384         self.checkUnauthorized('print context.aq_self')

Here is the call graph for this function:


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