Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

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 getPortal
from plone.app.theming.utils import findContext
from plone.app.theming.utils import getThemeFromResourceDirectory
 
            context = self.context
            try:
                context = findContext(portal.restrictedTraverse(path))
            except (KeyError, NotFound,):
                pass

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/mapper.py   plone.app.theming(Download)
 
from plone.app.theming.utils import getPortal
from plone.app.theming.utils import findContext
from plone.app.theming.utils import getThemeFromResourceDirectory
 
            context = self.context
            try:
                context = findContext(portal.restrictedTraverse(path))
            except (KeyError, NotFound,):
                pass

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 prepareThemeParameters
from plone.app.theming.utils import isThemeEnabled
from plone.app.theming.utils import findContext
from plone.app.theming.utils import getParser
from plone.app.theming.zmi import patch_zmi
 
            parameterExpressions = settings.parameterExpressions or {}
            params = prepareThemeParameters(findContext(self.request), self.request, parameterExpressions, cache)
 
            transformed = transform(result.tree, **params)

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/transform.py   plone.app.theming(Download)
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
from plone.app.theming.zmi import patch_zmi
 
            parameterExpressions = settings.parameterExpressions or {}
            params = prepareThemeParameters(findContext(self.request), self.request, parameterExpressions, cache)
 
            transformed = transform(result.tree, **params)

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/ThemeTransform.py   collective.themeswitcher(Download)
from zope import component
from plone.app.theming.utils import findContext
 
 
def getSettings(self):
    """Return a setting object. the setting to support cache must have a
    persistent __registry__ attributes, this is where plone.app.theming
    store it's cache"""
    context = findContext(self.request)