Back to index

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

List of all members.

Public Member Functions

def __init__
def indexObject
def reindexObject
def unindexObject
def setObs
def unrestrictedSearchResults

Public Attributes

 log
 obs

Static Public Attributes

 brain_class = DummyBrain

Detailed Description

Definition at line 75 of file test_CMFCatalogAware.py.


Constructor & Destructor Documentation

Definition at line 77 of file test_CMFCatalogAware.py.

00077 
00078     def __init__(self):
00079         self.log = []
        self.obs = []

Member Function Documentation

Definition at line 80 of file test_CMFCatalogAware.py.

00080 
00081     def indexObject(self, ob):
        self.log.append('index %s' % physicalpath(ob))

Here is the call graph for this function:

def CMFCore.tests.test_CMFCatalogAware.DummyCatalog.reindexObject (   self,
  ob,
  idxs = [],
  update_metadata = 0,
  uid = None 
)

Definition at line 82 of file test_CMFCatalogAware.py.

00082 
00083     def reindexObject(self, ob, idxs=[], update_metadata=0, uid=None):
        self.log.append('reindex %s %s' % (physicalpath(ob), idxs))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 86 of file test_CMFCatalogAware.py.

00086 
00087     def setObs(self, obs):
        self.obs = [(ob, physicalpath(ob)) for ob in obs]

Here is the call graph for this function:

Definition at line 84 of file test_CMFCatalogAware.py.

00084 
00085     def unindexObject(self, ob):
        self.log.append('unindex %s' % physicalpath(ob))

Here is the call graph for this function:

Definition at line 88 of file test_CMFCatalogAware.py.

00088 
00089     def unrestrictedSearchResults(self, path):
00090         res = []
00091         for ob, obpath in self.obs:
00092             if not (obpath+'/').startswith(path+'/'):
00093                 continue
00094             res.append(self.brain_class(ob, obpath))
00095         return res
00096 


Member Data Documentation

Definition at line 76 of file test_CMFCatalogAware.py.

Definition at line 78 of file test_CMFCatalogAware.py.

Definition at line 79 of file test_CMFCatalogAware.py.


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