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

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

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/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/tests/utils.py   collective.gallery(Download)
def brainToPhoto(ob):
    from collective.gallery import brain
    return brain.Photo(ob)
 
 

src/c/o/collective.scss-1.0b1/collective/scss/tests/utils.py   collective.scss(Download)
def brainToPhoto(ob):
    from collective.gallery import brain
    return brain.Photo(ob)
 
def verifyImage(image):

src/c/o/collective.gallery-2.0.1/collective/gallery/tests/utils.py   collective.gallery(Download)
def brainToPhoto(ob):
    from collective.gallery import brain
    return brain.Photo(ob)