Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
AdvancedQuery.AdvancedQuery._ElementaryQuery Class Reference
Inheritance diagram for AdvancedQuery.AdvancedQuery._ElementaryQuery:
Inheritance graph
[legend]
Collaboration diagram for AdvancedQuery.AdvancedQuery._ElementaryQuery:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__
def __and__
def __or__
def __invert__

Private Member Functions

def _getTerm
def _eval

Private Attributes

 _idx
 _term
 _filter

Static Private Attributes

 _functor = None
 _OP = None

Detailed Description

Definition at line 58 of file AdvancedQuery.py.


Constructor & Destructor Documentation

def AdvancedQuery.AdvancedQuery._ElementaryQuery.__init__ (   self,
  idx,
  term,
  filter = False 
)

Definition at line 63 of file AdvancedQuery.py.

00063 
00064   def __init__(self, idx, term, filter=False):
00065     self._idx = idx
00066     self._term = term
00067     self._filter = filter

Here is the caller graph for this function:


Member Function Documentation

def AdvancedQuery.AdvancedQuery._BaseQuery.__and__ (   self,
  other 
) [inherited]
self & other

Definition at line 35 of file AdvancedQuery.py.

00035 
00036   def __and__(self, other):
00037     '''self & other'''
00038     if isinstance(self,And): r = self._clone()
00039     else: r = And(self)
00040     r.addSubquery(other)
00041     return r

Here is the call graph for this function:

~ self

Definition at line 49 of file AdvancedQuery.py.

00049 
00050   def __invert__(self):
00051     '''~ self'''
00052     return Not(self)

def AdvancedQuery.AdvancedQuery._BaseQuery.__or__ (   self,
  other 
) [inherited]
self | other

Definition at line 42 of file AdvancedQuery.py.

00042 
00043   def __or__(self, other):
00044     '''self | other'''
00045     if isinstance(self,Or): r = self._clone()
00046     else: r = Or(self)
00047     r.addSubquery(other)
00048     return r

Here is the call graph for this function:

Reimplemented from AdvancedQuery.AdvancedQuery._BaseQuery.

Reimplemented in AdvancedQuery.AdvancedQuery.Between.

Definition at line 68 of file AdvancedQuery.py.

00068 
00069   def __str__(self):
00070     return '%s %s %r' % (self._idx, self._OP, self._term)

def AdvancedQuery.AdvancedQuery._ElementaryQuery._eval (   self,
  context 
) [private]

Reimplemented from AdvancedQuery.AdvancedQuery._BaseQuery.

Definition at line 78 of file AdvancedQuery.py.

00078 
00079   def _eval(self,context):
00080     functor = self._functor
00081     term = self._getTerm()
00082     if functor is not None: term = functor(term)
00083     return context._applyIndex(self, term)
00084 

Here is the call graph for this function:

def AdvancedQuery.AdvancedQuery._ElementaryQuery._getTerm (   self,
  term = _notPassed 
) [private]
determine term to be used for querying.

Definition at line 71 of file AdvancedQuery.py.

00071 
00072   def _getTerm(self, term = _notPassed):
00073     '''determine term to be used for querying.
00074     '''
00075     if term is _notPassed: term = self._term
00076     return term
00077 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 66 of file AdvancedQuery.py.

Definition at line 60 of file AdvancedQuery.py.

Definition at line 64 of file AdvancedQuery.py.

Definition at line 65 of file AdvancedQuery.py.


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