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

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

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/bling.py   Products.BlingPortlet(Download)
from Products.ATContentTypes.interface.news import IATNewsItem
from Products.BlingPortlet import BlingPortletMessageFactory as _
from Products.BlingPortlet.interfaces import IBlingPortlet, IBlingImage, IBlingSlideshowPortlet, IBlingable, IBlingSlideshowView, IBlingView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.form.widgets.uberselectionwidget import UberSelectionWidget
            return None
 
        return IBlingImage(results[self.getResultsIndex(len(results))].getObject(), None)
 
class SlideshowRenderer(BaseRenderer):
 
        results = self.catalog.unrestrictedSearchResults(query)
        filtered_results = [IBlingImage(r.getObject(), None) for r in results if r is not None]
 
        if self.data.ordering == u'Random':

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/adapter.py   Products.BlingPortlet(Download)
from Products.BlingPortlet.interfaces import IBlingImage
from zope.interface import implements
 
 
class ImageToBling(object):

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_adapter.py   Products.BlingPortlet(Download)
from Products.BlingPortlet.interfaces import IBlingImage
from Products.BlingPortlet.tests.base import TestCase
 
from Products.ATContentTypes.tests.test_atimage import loadImage
icon = loadImage('test.gif')
        img = self.portal['image-1']
        itemurl = img.absolute_url()
        blimg = IBlingImage(img)
 
        self.assertEquals(blimg.getTitle(), 'Test Image 1')
        news = self.portal['news-1']
        itemurl = news.absolute_url()
        blimg = IBlingImage(news)
 
        self.assertEquals(blimg.getTitle(), title)
        news.setImage(icon)
        itemurl = news.absolute_url()
        blimg = IBlingImage(news)
 
        self.assertEquals(blimg.getTitle(), title)