Did I find the right examples for you? yes no

All Samples(15)  |  Call(7)  |  Derive(0)  |  Import(8)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/browser/mapper.py   plone.app.theming(Download)
from plone.app.theming.utils import compileThemeTransform
from plone.app.theming.utils import prepareThemeParameters
from plone.app.theming.utils import getCurrentTheme
 
from plone.registry.interfaces import IRegistry
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
        self.active = (settings.enabled and self.name == getCurrentTheme())
 
        self.rulesFileName = RULE_FILENAME

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/mapper.py   plone.app.theming(Download)
from plone.app.theming.utils import compileThemeTransform
from plone.app.theming.utils import prepareThemeParameters
from plone.app.theming.utils import getCurrentTheme
 
from plone.registry.interfaces import IRegistry
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
        self.active = (settings.enabled and self.name == getCurrentTheme())
 
        self.rulesFileName = RULE_FILENAME

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
from plone.app.theming.utils import getCurrentTheme
from plone.app.theming.utils import isThemeEnabled
 
        return
 
    theme = getCurrentTheme()
    if theme is None:
        return

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
from plone.app.theming.utils import getCurrentTheme
from plone.app.theming.utils import isThemeEnabled
 
        return
 
    theme = getCurrentTheme()
    if theme is None:
        return

src/c/o/collective.jbot-1.0a3/collective/jbot/manager.py   collective.jbot(Download)
from zope.component import ComponentLookupError
from DateTime import DateTime
from plone.app.theming.utils import getCurrentTheme
from plone.resource.utils import queryResourceDirectory
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
        self.directory = persistent['custom']
        self.site = getSite()
        self.theme = getCurrentTheme()
        if self.theme:
            directory = queryResourceDirectory(

src/s/t/stxnext.grayscale-2.0.0a1/src/stxnext/grayscale/utils.py   stxnext.grayscale(Download)
    from zope.component.hooks import getSite
from plone.app.blocks.transform import IncludeTiles
from plone.app.theming.utils import getCurrentTheme
from plone.app.theming.transform import ThemeTransform
from zope.component import queryMultiAdapter
    published = request.get('PUBLISHED')
    if isinstance(published, (BrowserView, FSPageTemplate, PythonScript)):
        if getCurrentTheme():
            transform = ThemeTransform(published, request)
            try:

src/p/l/plonetheme.drupal-1.1/src/plonetheme/drupal/tests/test_install.py   plonetheme.drupal(Download)
    def test_diazo_theme_available(self):
        from plone.app.theming.utils import getCurrentTheme
        self.assertTrue(getCurrentTheme() == u'plonetheme.drupal')
 
class TestUninstall(unittest.TestCase):

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)
            fi.close()
 
    if getCurrentTheme() != 'custom':
        applyTheme(theme)