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/f/t/ftw.dashboard.portlets.postit-1.3.4/ftw/dashboard/portlets/postit/browser/ftw_formhelper.py   ftw.dashboard.portlets.postit(Download)
from plone.app.portlets.browser.formhelper import AddForm, NullAddForm, EditForm
from ftw.dashboard.portlets.postit import _
from Products.statusmessages.interfaces import IStatusMessage
from zope.component import getMultiAdapter
 
class ftwAddForm(AddForm):
    def nextURL(self):
        status = IStatusMessage(self.request)
        status.addStatusMessage(_(u'Portlet added to dashboard'), type='info')
    def nextURL(self):
        status = IStatusMessage(self.request)
        title = 'bla'
        status.addStatusMessage(_(u'Portlet edited'), type='info')
 
    def nextURL(self):
        status = IStatusMessage(self.request)
        title = 'bla'
        status.addStatusMessage(_(u'Portlet added to dashboard'), type='info')
        referer = self.request.get('referer')

src/f/t/ftw.dashboard.portlets.postit-1.3.4/ftw/dashboard/portlets/postit/browser/postit.py   ftw.dashboard.portlets.postit(Download)
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from ftw.dashboard.portlets.postit import _
from ftw_formhelper import ftwNullAddForm
from Products.CMFCore.utils import getToolByName
    def title(self):
        return _(u"Post-it")
 
 
def _render_cachekey(fun, self):