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

def zope-atcontenttypes-0.2-rc3::types::ATTopic::ATTopic::addCriterion (   self,
  field,
  criterion_type 
)

Add a new search criterion.

Definition at line 296 of file ATTopic.py.

00296                                                  :
        """Add a new search criterion.
        """
        newid = 'crit__%s' % field
        ct    = CriterionRegistry[criterion_type]
        crit  = ct(newid, field)

        self._setObject( newid, crit )

    security.declareProtected(ChangeTopics, 'deleteCriterion')
    def deleteCriterion(self, criterion_id):


Generated by  Doxygen 1.6.0   Back to index