Did I find the right examples for you? yes no

All Samples(30)  |  Call(28)  |  Derive(0)  |  Import(2)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.memoize.instance import memoize
 
from plone.app.theming.interfaces import _
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
        if 'form.button.Cancel' in form:
            IStatusMessage(self.request).add(_(u"Changes cancelled"))
 
            portalUrl = getToolByName(self.context, 'portal_url')()
                self.settings.enabled = True
 
            IStatusMessage(self.request).add(_(u"Theme enabled. Note that this control panel page is never themed."))
            self._setup()
            return True
            self.settings.enabled = False
 
            IStatusMessage(self.request).add(_(u"Theme disabled."))
            self._setup()
            return True
                except ValueError:
                    self.errors['parameterExpressions'] = \
                                    _('error_invalid_parameter_expressions',
                        default=u"Please ensure you enter one "
                                u"expression per line, in the "

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.memoize.instance import memoize
 
from plone.app.theming.interfaces import _
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
        if 'form.button.Cancel' in form:
            IStatusMessage(self.request).add(_(u"Changes cancelled"))
 
            portalUrl = getToolByName(self.context, 'portal_url')()
                self.settings.enabled = True
 
            IStatusMessage(self.request).add(_(u"Theme enabled. Note that this control panel page is never themed."))
            self._setup()
            return True
            self.settings.enabled = False
 
            IStatusMessage(self.request).add(_(u"Theme disabled."))
            self._setup()
            return True
                except ValueError:
                    self.errors['parameterExpressions'] = \
                                    _('error_invalid_parameter_expressions',
                        default=u"Please ensure you enter one "
                                u"expression per line, in the "