Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/r/Products.AdvancedQuery-3.0.3/Products/AdvancedQuery/__init__.py   Products.AdvancedQuery(Download)
except ImportError: from Globals import InitializeClass
 
from AdvancedQuery import Eq, In, Le, Ge, \
     MatchGlob, MatchRegexp, \
     Between, Not, And, Or, Generic, Indexed, \
      indexes = self.Indexes.objectIds()
      if 'ValidityRange' in indexes:
        query &= Eq('ValidityRange', now)
      else:
        # make a check that the indexes exist (suggested by Chris Abraham