Back to index

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

List of all members.

Public Member Functions

def getNavTypes
def setValue
def getCriteriaItems
def reindexObject
def unindexObject
def indexObject

Static Public Attributes

tuple security = ClassSecurityInfo()
 schema = ATPathCriterionSchema
string meta_type = 'ATPathCriterion'
string archetype_name = 'Path Criterion'
string shortDesc = 'Location in site'

Static Private Attributes

tuple __implements__ = ATBaseCriterion.__implements__+(IATTopicSearchCriterion, )
 _catalogUID = Referenceable._catalogUID
 _catalogRefs = Referenceable._catalogRefs
 _unregister = Referenceable._unregister
 _updateCatalog = Referenceable._updateCatalog
 _referenceApply = Referenceable._referenceApply
 _uncatalogUID = Referenceable._uncatalogUID
 _uncatalogRefs = Referenceable._uncatalogRefs

Detailed Description

A path criterion

Definition at line 77 of file path.py.


Member Function Documentation

Definition at line 98 of file path.py.

00098 
00099     def getCriteriaItems(self):
00100         result = []
00101         depth = (not self.Recurse() and 1) or -1
00102         paths = ['/'.join(o.getPhysicalPath()) for o in self.Value()]
00103 
00104         if paths is not '':
00105             result.append((self.Field(), {'query': paths, 'depth': depth}))
00106 
00107         return tuple( result )

Here is the call graph for this function:

Definition at line 87 of file path.py.

00087 
00088     def getNavTypes(self):
00089         ptool = self.plone_utils
00090         nav_types = ptool.typesToList()
00091         return nav_types

def ATContentTypes.criteria.path.ATPathCriterion.indexObject (   self,
  args,
  kwargs 
)

Definition at line 125 of file path.py.

00125 
00126     def indexObject(self, *args, **kwargs):
00127         self._catalogUID(self)
00128         self._catalogRefs(self)
00129 
00130 registerCriterion(ATPathCriterion, PATH_INDICES)
def ATContentTypes.criteria.path.ATPathCriterion.reindexObject (   self,
  args,
  kwargs 
)

Definition at line 117 of file path.py.

00117 
00118     def reindexObject(self, *args, **kwargs):
00119         self._catalogUID(self)
00120         self._catalogRefs(self)

Here is the caller graph for this function:

Definition at line 93 of file path.py.

00093 
00094     def setValue(self, value):
00095         self.getField('value').set(self, value)
00096         self.reindexObject()

Here is the call graph for this function:

def ATContentTypes.criteria.path.ATPathCriterion.unindexObject (   self,
  args,
  kwargs 
)

Definition at line 121 of file path.py.

00121 
00122     def unindexObject(self, *args, **kwargs):
00123         self._uncatalogUID(self)
00124         self._uncatalogRefs(self)


Member Data Documentation

tuple ATContentTypes.criteria.path.ATPathCriterion.__implements__ = ATBaseCriterion.__implements__+(IATTopicSearchCriterion, ) [static, private]

Definition at line 80 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._catalogRefs = Referenceable._catalogRefs [static, private]

Definition at line 110 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._catalogUID = Referenceable._catalogUID [static, private]

Definition at line 109 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._referenceApply = Referenceable._referenceApply [static, private]

Definition at line 113 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._uncatalogRefs = Referenceable._uncatalogRefs [static, private]

Definition at line 115 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._uncatalogUID = Referenceable._uncatalogUID [static, private]

Definition at line 114 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._unregister = Referenceable._unregister [static, private]

Definition at line 111 of file path.py.

ATContentTypes.criteria.path.ATPathCriterion._updateCatalog = Referenceable._updateCatalog [static, private]

Definition at line 112 of file path.py.

Definition at line 84 of file path.py.

Definition at line 83 of file path.py.

Definition at line 82 of file path.py.

tuple ATContentTypes.criteria.path.ATPathCriterion.security = ClassSecurityInfo() [static]

Definition at line 81 of file path.py.

string ATContentTypes.criteria.path.ATPathCriterion.shortDesc = 'Location in site' [static]

Definition at line 85 of file path.py.


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