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

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

src/c/o/collective.hootsuite-1.1.2/src/collective/hootsuite/browser/controlpanel.py   collective.hootsuite(Download)
from plone.app.registry.browser import controlpanel
 
from collective.hootsuite.interfaces import IHootsuiteRegistry, _
from z3c.form import button
from Products.statusmessages.interfaces import IStatusMessage
class HootsuiteSettingsEditForm(controlpanel.RegistryEditForm):
 
    schema = IHootsuiteRegistry
    label = _(u"Hootsuite settings")
    description = _(u"""""")
            return
        self.applyChanges(data)
        IStatusMessage(self.request).addStatusMessage(_(u"Changes saved"),
                                                      "info")
        self.context.REQUEST.RESPONSE.redirect("@@hootsuite-settings")
 
    @button.buttonAndHandler(_('Cancel'), name='cancel')
    def handleCancel(self, action):
        IStatusMessage(self.request).addStatusMessage(_(u"Edit cancelled"),