Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
CMFCore.tests.test_CMFCatalogAware.DummyOldBrain Class Reference
Inheritance diagram for CMFCore.tests.test_CMFCatalogAware.DummyOldBrain:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getPath
def getObject

Public Attributes

 ob
 id
 path

Detailed Description

Definition at line 52 of file test_CMFCatalogAware.py.


Constructor & Destructor Documentation

Definition at line 53 of file test_CMFCatalogAware.py.

00053 
00054     def __init__(self, ob, path):
00055         self.ob = ob
00056         self.id = ob.getId()
        self.path = path

Member Function Documentation

Definition at line 59 of file test_CMFCatalogAware.py.

00059 
00060     def getObject(self):
00061         if self.id == 'missing':
00062             if self.ob.GETOBJECT_RAISES:
00063                 raise NotFound("missing")
00064             else:
00065                 return None
00066         if self.id == 'hop':
00067             raise ValueError("security problem for this object")
00068         return self.ob

Here is the caller graph for this function:

Definition at line 57 of file test_CMFCatalogAware.py.

00057 
00058     def getPath(self):
        return self.path

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in CMFCore.tests.test_CMFCatalogAware.DummyBrain.

Definition at line 55 of file test_CMFCatalogAware.py.

Definition at line 54 of file test_CMFCatalogAware.py.

Definition at line 56 of file test_CMFCatalogAware.py.


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