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

All Samples(29)  |  Call(0)  |  Derive(0)  |  Import(29)

src/z/g/zgeo.wfs-0.2.1/zgeo/wfs/geocatalog/catalog.py   zgeo.wfs(Download)
from Products.ZCatalog.Catalog import CatalogError
from Products.ZCatalog.ZCatalog import Catalog
from Missing import MV
 
from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
		for x in self.names:
			if hasattr(geoitem, x):
				attr=getattr(geoitem, x, MV)
			else:
				attr=getattr(object, x, MV)
 
			if(attr is not MV and safe_callable(attr)): attr=attr()

src/p/r/Products.ZCatalog-3.0.2/src/Products/ZCatalog/Catalog.py   Products.ZCatalog(Download)
from BTrees.IOBTree import IOBTree
import ExtensionClass
from Missing import MV
from Persistence import Persistent
 
 
        if default_value in (None, ''):
            default_value = MV
 
        if len(self):
        # the unique id is always the first element
        for x in self.names:
            attr = getattr(object, x, MV)
            if (attr is not MV and safe_callable(attr)):
                attr = attr()

src/c/o/collective.formcriteria-2.0/src/collective/formcriteria/foldercontents/form.py   collective.formcriteria(Download)
 
from Acquisition import aq_inner
from Missing import MV
from DateTime.interfaces import IDateTime
 
            columns = {}
            for column in self.columns.ordered:
                value = getattr(obj, column['field'], MV)
 
                # Calculate the sums before using any expression
                if value is not MV:

src/p/r/Products.CMFPlomino-1.18.6/Products/CMFPlomino/index/PlominoCatalog.py   Products.CMFPlomino(Download)
# Zope
from Products.ZCatalog.ZCatalog import Catalog
from Missing import MV
 
# Plomino
                record.append(v)
            else:
                attr = getattr(obj, name, MV)
                if attr is not MV and safe_callable(attr):
                    attr = attr()

src/r/a/raptus.multilanguagefields-1.1b8/raptus/multilanguagefields/patches/catalog.py   raptus.multilanguagefields(Download)
# -*- coding: utf-8 -*-
#===============================================================================
# Patch Catalog 
#===============================================================================
from Missing import MV
    # the unique id is always the first element
    for x in self.names:
        attr=getattr(object, x, MV)
        if(attr is not MV and safe_callable(attr)):
            try:

src/p/l/Plomino-HEAD/Products/CMFPlomino/index/PlominoCatalog.py   Plomino(Download)
# Zope
from Products.ZCatalog.ZCatalog import Catalog
from Missing import MV
 
# Plomino
                record.append(v)
            else:
                attr = getattr(obj, name, MV)
                if attr is not MV and safe_callable(attr):
                    attr = attr()

src/q/u/quintagroup.catalogupdater-0.1.1/quintagroup/catalogupdater/utility.py   quintagroup.catalogupdater(Download)
from zope.component import queryMultiAdapter
 
from Missing import MV
from Acquisition import aq_inner
from Acquisition import aq_parent
            for column in columns:
                # calculate the column value
                attr=getattr(obj, column, MV)
                if(attr is not MV and safe_callable(attr)): attr=attr()
                # Update metadata value

src/c/o/collective.solr-4.0/src/collective/solr/search.py   collective.solr(Download)
from logging import getLogger
from time import time
from zope.interface import implements
from zope.component import queryUtility
from Missing import MV
                if not isinstance(value, (tuple, list)):
                    value = [value]
                falses = '0', 'False', MV
                true = lambda v: bool(v) and v not in falses
                value = set(map(true, value))

src/c/o/collective.solr-4.0/src/collective/solr/dispatcher.py   collective.solr(Download)
from zope.publisher.interfaces.http import IHTTPRequest
from Acquisition import aq_base
from Missing import MV
from Products.ZCatalog.ZCatalog import ZCatalog
 
        flare = wrap(flare)
        for missing in set(schema.stored).difference(flare):
            flare[missing] = MV
        results[idx] = wrap(flare)
    padResults(results, **params)           # pad the batch

src/c/o/collective.solr-HEAD/src/collective/solr/search.py   collective.solr(Download)
from logging import getLogger
from time import time
from zope.interface import implements
from zope.component import queryUtility
from Missing import MV
                if not isinstance(value, (tuple, list)):
                    value = [value]
                falses = '0', 'False', MV
                true = lambda v: bool(v) and v not in falses
                value = set(map(true, value))

  1 | 2 | 3 | 4  Next