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

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

src/c/o/collective.gallery-2.0.1/collective/gallery/topic.py   collective.gallery(Download)
    def _brainToPhoto(self, ob):
        return interfaces.IPhoto(ob)
 

src/c/o/collective.gallery-2.0.1/collective/gallery/folder.py   collective.gallery(Download)
    def _brainToPhoto(self, ob):
        try:
            photo = interfaces.IPhoto(ob)
        except component.ComponentLookupError:
            photo = brain.Photo(ob)

src/c/o/collective.gallery-HEAD/collective/gallery/topic.py   collective.gallery(Download)
    def _brainToPhoto(self, ob):
        return interfaces.IPhoto(ob)
 

src/c/o/collective.gallery-HEAD/collective/gallery/folder.py   collective.gallery(Download)
    def _brainToPhoto(self, ob):
        try:
            photo = interfaces.IPhoto(ob)
        except component.ComponentLookupError:
            photo = brain.Photo(ob)