Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions | Private Attributes
AdvancedQuery.AdvancedQuery.Not Class Reference
Inheritance diagram for AdvancedQuery.AdvancedQuery.Not:
Inheritance graph
[legend]
Collaboration diagram for AdvancedQuery.AdvancedQuery.Not:
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
def _eval

Private Attributes

 _query

Detailed Description

~(query)

Definition at line 138 of file AdvancedQuery.py.


Constructor & Destructor Documentation

def AdvancedQuery.AdvancedQuery.Not.__init__ (   self,
  query 
)

Definition at line 140 of file AdvancedQuery.py.

00140 
00141   def __init__(self,query):
00142     self._query = query

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 143 of file AdvancedQuery.py.

00143 
00144   def __str__(self):
00145     return '~(%s)' % str(self._query)

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

Reimplemented from AdvancedQuery.AdvancedQuery._BaseQuery.

Definition at line 146 of file AdvancedQuery.py.

00146 
00147   def _eval(self,context):
00148     return difference(context._getObjectIds(),self._query._eval(context))
00149 

Here is the caller graph for this function:

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

Reimplemented from AdvancedQuery.AdvancedQuery._BaseQuery.

Definition at line 332 of file AdvancedQuery.py.

00332 
00333     def _eval(self, context):
00334       return INot(self._query._eval(context), EBTree(context._getObjectIds()))
00335 
  def _prepareSpec(spec, query):

Here is the call graph for this function:


Member Data Documentation

Definition at line 141 of file AdvancedQuery.py.


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