Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
ATContentTypes.criteria.base.ATBaseCriterion Class Reference
Inheritance diagram for ATContentTypes.criteria.base.ATBaseCriterion:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.criteria.base.ATBaseCriterion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getId
def setId
def Type
def Description
def getCriteriaItems
def indexObject
def unindexObject
def reindexObject

Static Public Attributes

tuple security = ClassSecurityInfo()
 schema = ATBaseCriterionSchema
string meta_type = 'ATBaseCriterion'
string archetype_name = 'Base Criterion'
 isReferenceable = None

Static Private Attributes

tuple __implements__ = (IATTopicCriterion, NonRefCatalogContent.__implements__)

Detailed Description

A basic criterion

Definition at line 60 of file base.py.


Constructor & Destructor Documentation

def ATContentTypes.criteria.base.ATBaseCriterion.__init__ (   self,
  id = None,
  field = None,
  oid = None 
)

Definition at line 71 of file base.py.

00071 
00072     def __init__(self, id=None, field=None, oid=None):
00073         if oid is not None:
00074             if field is None:
00075                 field = id
00076             id = oid
00077         assert id
00078         NonRefCatalogContent.__init__(self, id)
00079         self.getField('id').set(self, id)
00080         self.getField('field').set(self, field)

Here is the call graph for this function:


Member Function Documentation

Definition at line 96 of file base.py.

00096 
00097     def Description(self):
00098         lines = [ line.strip() for line in self.__doc__.splitlines() ]
00099         return ' '.join( [ line for line in lines if line ] )

Here is the caller graph for this function:

Return a sequence of items to be used to build the catalog query.

Definition at line 101 of file base.py.

00101 
00102     def getCriteriaItems(self):
00103         """Return a sequence of items to be used to build the catalog query.
00104         """
00105         return ()
00106 
00107 # because I don't register the class I've to generator it on my own. Otherwise
00108 # I'm not able to unit test it in the right way.
00109 generateClass(ATBaseCriterion)
00110 InitializeClass(ATBaseCriterion)
Get the object id

Definition at line 82 of file base.py.

00082 
00083     def getId(self):
00084         """Get the object id"""
00085         return str(self.id)

Here is the call graph for this function:

def ATContentTypes.criteria.base.NonRefCatalogContent.indexObject (   self,
  args,
  kwargs 
) [inherited]

Definition at line 56 of file base.py.

00056 
    def indexObject(self, *args, **kwargs): pass
def ATContentTypes.criteria.base.NonRefCatalogContent.reindexObject (   self,
  args,
  kwargs 
) [inherited]

Definition at line 58 of file base.py.

00058 
00059     def reindexObject(self, *args, **kwargs): pass

Here is the caller graph for this function:

def ATContentTypes.criteria.base.ATBaseCriterion.setId (   self,
  value,
  kw 
)
Setting a new ID isn't allowed

Definition at line 86 of file base.py.

00086 
00087     def setId(self, value, *kw):
00088         """Setting a new ID isn't allowed
00089         """
00090         assert value == self.getId(), 'You are not allowed to change the id'

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 92 of file base.py.

00092 
00093     def Type(self):
00094         return self.archetype_name

Here is the caller graph for this function:

def ATContentTypes.criteria.base.NonRefCatalogContent.unindexObject (   self,
  args,
  kwargs 
) [inherited]

Definition at line 57 of file base.py.

00057 
    def unindexObject(self, *args, **kwargs): pass

Member Data Documentation

Reimplemented from ATContentTypes.criteria.base.NonRefCatalogContent.

Definition at line 65 of file base.py.

Definition at line 69 of file base.py.

Definition at line 42 of file base.py.

Definition at line 68 of file base.py.

ATContentTypes.criteria.base.ATBaseCriterion.schema = ATBaseCriterionSchema [static]

Definition at line 67 of file base.py.

tuple ATContentTypes.criteria.base.ATBaseCriterion.security = ClassSecurityInfo() [static]

Definition at line 63 of file base.py.


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