Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
from plone.app.theming.utils import createThemeFromTemplate
 
from plone.app.theming.plugins.utils import getPluginSettings
 
            else:
                name = createThemeFromTemplate(title, description, baseOn)
                self._setup()
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
from plone.app.theming.utils import createThemeFromTemplate
 
from plone.app.theming.plugins.utils import getPluginSettings
 
            else:
                name = createThemeFromTemplate(title, description, baseOn)
                self._setup()
 

src/c/o/collective.jbot-1.0a3/collective/jbot/testing.py   collective.jbot(Download)
from zope.configuration import xmlconfig
from plone.testing import z2
from plone.app.theming.utils import (
    getAvailableThemes, applyTheme, createThemeFromTemplate,
    getCurrentTheme)
def activateTheme():
    theme = getTheme('custom')
 
    if theme is None:
        createThemeFromTemplate('custom', '')