Did I find the right examples for you? yes no

All Samples(30)  |  Call(13)  |  Derive(0)  |  Import(17)

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 extractThemeInfo
from plone.app.theming.utils import getZODBThemes
from plone.app.theming.utils import getAvailableThemes
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
    def _setup(self):
        self.settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
        self.zodbThemes = getZODBThemes()
        self.availableThemes = getAvailableThemes()
        self.selectedTheme = self.getSelectedTheme(self.availableThemes, self.settings.rules)

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.app.theming.utils import extractThemeInfo
from plone.app.theming.utils import getZODBThemes
from plone.app.theming.utils import getAvailableThemes
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
    def _setup(self):
        self.settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
        self.zodbThemes = getZODBThemes()
        self.availableThemes = getAvailableThemes()
        self.selectedTheme = self.getSelectedTheme(self.availableThemes, self.settings.rules)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/exportimport/handler.py   plone.app.theming(Download)
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getAvailableThemes
 
def importTheme(context):
        themeInfo = None
 
        allThemes = getAvailableThemes()
        for info in allThemes:
            if info.__name__.lower() == themeName.lower():

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/exportimport/handler.py   plone.app.theming(Download)
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme
from plone.app.theming.utils import getAvailableThemes
 
def importTheme(context):
        themeInfo = None
 
        allThemes = getAvailableThemes()
        for info in allThemes:
            if info.__name__.lower() == themeName.lower():

src/c/o/collective.behavior.localdiazo-1.0b3/src/collective/behavior/localdiazo/browser.py   collective.behavior.localdiazo(Download)
from plone.app.theming.interfaces import IThemeSettings
from Products.Five import BrowserView
from plone.app.theming.utils import getAvailableThemes
 
 
            return
        settings = registry.forInterface(IThemeSettings, False)
        themes = getAvailableThemes()
 
        if self.context.theme:

src/c/o/collective.behavior.localdiazo-1.0b3/src/collective/behavior/localdiazo/behavior.py   collective.behavior.localdiazo(Download)
from collective.behavior.localregistry.behavior import ILocalRegistry
from plone.app.theming.interfaces import TEMPLATE_THEME
from plone.app.theming.utils import getAvailableThemes
from plone.directives import form
from zope import schema
def getDiazoThemes(context):
    """Get a list of all Diazo themes.
    """
    themes = getAvailableThemes()
    terms = [SimpleTerm(theme.rules, theme.rules, theme.title)

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/switcher.py   collective.themeswitcher(Download)
from plone.registry.interfaces import IRegistry
from Products.Five.browser import BrowserView
from plone.app.theming.utils import getAvailableThemes
from Products.CMFCore.utils import getToolByName
from plone.app.theming.interfaces import IThemeSettings
    def update(self):
        if self.portal_registry is None:
            self.portal_registry = component.queryUtility(IRegistry)
        if self.available_themes is None:
            self.available_themes = [t.__name__ for t in getAvailableThemes()]

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
    def test_getAvailableThemes(self):
        from plone.app.theming.utils import getAvailableThemes
        from plone.app.theming.utils import getTheme
 
        themes = getAvailableThemes()
 
        from plone.app.theming.interfaces import IThemeSettings
        from plone.app.theming.utils import getAvailableThemes
        from plone.app.theming.utils import applyTheme
 
        theme = None
        for t in getAvailableThemes():

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_transform.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme, getAvailableThemes, getTheme
from plone.app.theming.utils import InternalResolver, PythonResolver, resolvePythonURL
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_controlpanel.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme, getAvailableThemes
from plone.app.theming.utils import InternalResolver, PythonResolver, resolvePythonURL
 

  1 | 2  Next