Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions | Private Attributes
AdvancedQuery.AdvancedQuery._QueryContext Class Reference

List of all members.

Public Member Functions

def __init__

Private Member Functions

def _applyIndex
def _prepareSpec
def _getObjectIds
def _indexed

Private Attributes

 _catalog
 _objects

Detailed Description

auxiliary class to encapsulate the catalog interface.

Definition at line 268 of file AdvancedQuery.py.


Constructor & Destructor Documentation

Definition at line 270 of file AdvancedQuery.py.

00270 
00271   def __init__(self, catalog):
00272     self._catalog = catalog

Here is the caller graph for this function:


Member Function Documentation

def AdvancedQuery.AdvancedQuery._QueryContext._applyIndex (   self,
  query,
  spec 
) [private]

Definition at line 273 of file AdvancedQuery.py.

00273 
00274   def _applyIndex(self, query, spec):
00275     spec = _prepareSpec(spec, query)
00276     cat = self._catalog; index = query._idx
00277     return _wrapLookup(cat.indexes[index].__of__(cat)._apply_index({index:spec})[0])

Here is the call graph for this function:

Definition at line 282 of file AdvancedQuery.py.

00282 
00283   def _getObjectIds(self):
00284     objs = self._objects
00285     if objs is None:
00286       objs = self._objects = IITreeSet(self._catalog.data.keys())
00287     return objs

Here is the caller graph for this function:

def AdvancedQuery.AdvancedQuery._QueryContext._indexed (   self,
  index 
) [private]

Definition at line 288 of file AdvancedQuery.py.

00288 
00289   def _indexed(self, index):
00290     cat = self._catalog
00291     # simplified -- hopefully not wrong!
00292     #return _wrapLookup(IITreeSet(cat.indexes[index]._unindex.keys()))
00293     return _wrapLookup(cat.indexes[index]._unindex)
00294 

Here is the call graph for this function:

def AdvancedQuery.AdvancedQuery._QueryContext._prepareSpec (   self,
  spec,
  query 
) [private]

Definition at line 279 of file AdvancedQuery.py.

00279 
00280   def _prepareSpec(self, spec, query): return spec

Here is the caller graph for this function:


Member Data Documentation

Definition at line 271 of file AdvancedQuery.py.

Definition at line 285 of file AdvancedQuery.py.


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