Did I find the right examples for you? yes no

All Samples(16)  |  Call(6)  |  Derive(0)  |  Import(10)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/transform.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 isThemeEnabled
from plone.app.theming.utils import findContext
from plone.app.theming.utils import getParser
            return None
 
        if not isThemeEnabled(request, settings):
            return None
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/transform.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 isThemeEnabled
from plone.app.theming.utils import findContext
from plone.app.theming.utils import getParser
            return None
 
        if not isThemeEnabled(request, settings):
            return None
 

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
 
from plone.app.theming.utils import getCurrentTheme
from plone.app.theming.utils import isThemeEnabled
 
from plone.app.theming.plugins.utils import getPlugins
    request = event.request
 
    if not isThemeEnabled(request):
        return
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
 
from plone.app.theming.utils import getCurrentTheme
from plone.app.theming.utils import isThemeEnabled
 
from plone.app.theming.plugins.utils import getPlugins
    request = event.request
 
    if not isThemeEnabled(request):
        return
 

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/header.py   plone.app.theming(Download)
from plone.app.theming.utils import isThemeEnabled
 
def setHeader(object, event):
    """Set a header X-Theme-Enabled in the request if theming is enabled.
 
    request = event.request
 
    if isThemeEnabled(request):
        request.environ['HTTP_X_THEME_ENABLED'] = True
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/header.py   plone.app.theming(Download)
from plone.app.theming.utils import isThemeEnabled
 
def setHeader(object, event):
    """Set a header X-Theme-Enabled in the request if theming is enabled.
 
    request = event.request
 
    if isThemeEnabled(request):
        request.environ['HTTP_X_THEME_ENABLED'] = True
 

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
 
        from plone.app.theming.interfaces import IThemeSettings
        from plone.app.theming.utils import isThemeEnabled
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
 
        from plone.app.theming.interfaces import IThemeSettings
        from plone.app.theming.utils import isThemeEnabled
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
 
        from plone.app.theming.interfaces import IThemeSettings
        from plone.app.theming.utils import isThemeEnabled
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)
 
        from plone.app.theming.interfaces import IThemeSettings
        from plone.app.theming.utils import isThemeEnabled
 
        settings = getUtility(IRegistry).forInterface(IThemeSettings, False)