Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __and__
def __or__
def __invert__

Private Member Functions

def _eval

Private Attributes

 _set

Detailed Description

Query given by its result set.

Used to restrict previous query results.

Definition at line 237 of file AdvancedQuery.py.


Constructor & Destructor Documentation

query returning *set*.

*set* must be an 'IISet' or 'IITreeSet' of catalog record ids.

Definition at line 242 of file AdvancedQuery.py.

00242 
00243   def __init__(self, set):
00244     '''query returning *set*.
00245 
00246     *set* must be an 'IISet' or 'IITreeSet' of catalog record ids.
00247     '''
00248     if not isinstance(set, (IISet, IITreeSet)): set = IITreeSet(set)
00249     self._set = set

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.

Definition at line 250 of file AdvancedQuery.py.

00250 
00251   def __str__(self): return 'LiteralResultSet(%s)' % self._set

def AdvancedQuery.AdvancedQuery.LiteralResultSet._eval (   self,
  catalog 
) [private]

Reimplemented from AdvancedQuery.AdvancedQuery._BaseQuery.

Definition at line 252 of file AdvancedQuery.py.

00252 
00253   def _eval(self,catalog):
00254     return _wrapLookup(self._set)
00255   
00256 

Here is the call graph for this function:


Member Data Documentation

Definition at line 248 of file AdvancedQuery.py.


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