Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __and__
def __or__
def __invert__

Private Member Functions

def _functor

Detailed Description

lb <= idx <= ub

Definition at line 116 of file AdvancedQuery.py.


Constructor & Destructor Documentation

def AdvancedQuery.AdvancedQuery.Between.__init__ (   self,
  idx,
  lb,
  ub,
  filter = False 
)

Definition at line 118 of file AdvancedQuery.py.

00118 
00119   def __init__(self, idx, lb, ub, filter=False):
00120     _ElementaryQuery.__init__(self, idx, (lb,ub), 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._ElementaryQuery.

Definition at line 121 of file AdvancedQuery.py.

00121 
00122   def __str__(self):
00123     t = self._term
00124     return '%r <= %s <= %r' % (t[0], self._idx, t[1])

def AdvancedQuery.AdvancedQuery.Between._functor (   self,
  term 
) [private]

Definition at line 125 of file AdvancedQuery.py.

00125 
00126   def _functor(self, term): return {'query':term, 'range':'min:max',}
00127 


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