Logo Search packages:      
Sourcecode: zope-atcontenttypes version File versions

def zope-atcontenttypes-0.2-rc3::types::ATTopic::ATTopic::buildQuery (   self  ) 

Construct a catalog query using our criterion objects.

Definition at line 249 of file ATTopic.py.

00249                         :
        """Construct a catalog query using our criterion objects.
        result = {}
        criteria = self.listCriteria()
        if not criteria:
            # no criteria found
            return None

        if self.getAcquireCriteria():
                # Tracker 290 asks to allow combinations, like this:
                # parent = aq_parent(self)
                parent = aq_parent(aq_inner(self))
            except AttributeError: # oh well, can't find parent, or it isn't a Topic.
        for criterion in criteria:
            for key, value in criterion.getCriteriaItems():
                result[key] = value
        return result

    security.declareProtected(CMFCorePermissions.View, 'queryCatalog')
    def queryCatalog(self, REQUEST=None, **kw):

Generated by  Doxygen 1.6.0   Back to index