Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/r/Products.ImageRepository-1.0.2/Products/ImageRepository/browser/imagerepository.py   Products.ImageRepository(Download)
from Products.statusmessages.interfaces import IStatusMessage
 
from Products.ImageRepository import ImageRepositoryMessageFactory as _
from Products.ImageRepository.interfaces import IImageRepository
from Products.ImageRepository.interfaces import IImageRepositoryView
                                    'string:${portal_url}/%s/imagerepository_collection.xml' % path,
                                    'string:${portal_url}/imagerepository_icon.gif')
                message = _(u"Registered repository in Kupu.")
                IStatusMessage(request).addStatusMessage(message, type='info')
                response.redirect(self.context.absolute_url()+'/view')
        else:
            message = _("Kupu is not installed.")