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

All Samples(9)  |  Call(4)  |  Derive(1)  |  Import(4)

src/c/o/collective.geo.index-0.1/collective/geo/index/browser/kmlview.py   collective.geo.index(Download)
from zope.interface import implements, Interface
from plone.memoize import view
from Products.CMFCore.utils import getToolByName
 
from collective.geo.kml.browser.kmldocument import KMLBaseDocument, BrainPlacemark
    def features(self):
        results = get_results(self.context, self.request)
        for brain in results:
            yield BrainPlacemark(brain, self.request, self)
 

src/c/o/collective.geo.opensearch-0.4/collective/geo/opensearch/browser/kmlview.py   collective.geo.opensearch(Download)
from zope.interface import implements, Interface
from plone.memoize import view
 
from collective.geo.kml.browser.kmldocument import KMLBaseDocument, BrainPlacemark
 
    def features(self):
        search_results = search.get_results(self.context, self.request)
        for brain in search_results:
            if brain.zgeo_geometry:
                yield BrainPlacemark(brain, self.request, self)

src/c/o/collective.geo.flexitopic-0.5/collective/geo/flexitopic/browser/kmlview.py   collective.geo.flexitopic(Download)
from zope.interface import implements, Interface
from plone.memoize import view
from Products.CMFCore.utils import getToolByName
 
from collective.geo.kml.browser.kmldocument import KMLBaseDocument, BrainPlacemark
            try:
                if brain.zgeo_geometry['coordinates']:
                    yield BrainPlacemark(brain, self.request, self)
            except:
                continue
            try:
                if brain.zgeo_geometry['coordinates']:
                    yield BrainPlacemark(brain, self.request, self)
            except:
                continue

src/c/o/collective.geo.fastkml-0.3/collective/geo/fastkml/browser/kmldocument.py   collective.geo.fastkml(Download)
 
from collective.geo.kml.browser.kmldocument import KMLBaseDocument
from collective.geo.kml.browser.kmldocument import BrainPlacemark
from collective.geo.kml.interfaces import IFeature
 
class FastBrainPlacemark(BrainPlacemark):
 
    imagesnippet='''<a class="placemark-image"
    href="%(url)s/view">
    <img src="%(url)s/image_%(scale)s" alt="%(name)s" title="%(name)s"