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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/c/o/collective.gallery-2.0.1/collective/gallery/link/__init__.py   collective.gallery(Download)
from collective.gallery.link.picasaweb import check as check_picasaweb
 
from collective.gallery.link.facebook import Link as FacebookLink
from collective.gallery.link.flickr import Link as FlickrLink
from collective.gallery.link.picasaweb import Link as PicasawebLink
            #to optimize performance those are hardcoded
            if check_facebook(url):
                self.resource = FacebookLink(self.context)
            elif check_picasaweb(url):
                self.resource = PicasawebLink(self.context)

src/c/o/collective.gallery-HEAD/collective/gallery/link/__init__.py   collective.gallery(Download)
from collective.gallery.link.picasaweb import check as check_picasaweb
 
from collective.gallery.link.facebook import Link as FacebookLink
from collective.gallery.link.flickr import Link as FlickrLink
from collective.gallery.link.picasaweb import Link as PicasawebLink
            #to optimize performance those are hardcoded
            if check_facebook(url):
                self.resource = FacebookLink(self.context)
            elif check_picasaweb(url):
                self.resource = PicasawebLink(self.context)

src/c/o/collective.gallery-HEAD/collective/gallery/tests/test_facebook.py   collective.gallery(Download)
    def getAdapter(self, url):
        from collective.gallery.link import facebook
        self.context.remoteUrl = url
        adapter = facebook.Link(self.context)
        adapter.settings = utils.FakeProperty

src/c/o/collective.gallery-2.0.1/collective/gallery/tests/test_facebook.py   collective.gallery(Download)
    def getAdapter(self, url):
        from collective.gallery.link import facebook
        self.context.remoteUrl = url
        adapter = facebook.Link(self.context)
        adapter.settings = utils.FakeProperty