Did I find the right examples for you? yes no

All Samples(8)  |  Call(3)  |  Derive(0)  |  Import(5)

src/s/t/stxnext.staticdeployment-1.1/src/stxnext/staticdeployment/adapters/diazo.py   stxnext.staticdeployment(Download)
"""
Transformation adapters for Diazo themes
"""
import traceback
from plone.app.theming.transform import ThemeTransform
            return text
 
        theme_transform = ThemeTransform(context, req)
        encoding = 'utf-8'
        try:

src/s/t/stxnext.staticdeployment-HEAD/src/stxnext/staticdeployment/adapters/diazo.py   stxnext.staticdeployment(Download)
"""
Transformation adapters for Diazo themes
"""
import traceback
from plone.app.theming.transform import ThemeTransform
            return text
 
        theme_transform = ThemeTransform(context, req)
        encoding = 'utf-8'
        try:

src/s/t/stxnext.grayscale-2.0.0a1/src/stxnext/grayscale/utils.py   stxnext.grayscale(Download)
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
from zope.contentprovider.interfaces import ContentProviderLookupError
    if isinstance(published, (BrowserView, FSPageTemplate, PythonScript)):
        if getCurrentTheme():
            transform = ThemeTransform(published, request)
            try:
                themed = transform.transformUnicode(published(), 'utf-8')

src/s/e/seantis.dir.events-1.2.1/seantis/dir/events/pages.py   seantis.dir.events(Download)
 
from plone.app.layout.viewlets.interfaces import IHtmlHeadLinks
from plone.app.theming.transform import ThemeTransform
from plone.transformchain.interfaces import ITransform
 

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/tests/test_setup.py   collective.themeswitcher(Download)
    def test_monkeypatch(self):
        self.assertEqual(self.portal.portal_skins.getDefaultSkin.__module__,
                         'collective.themeswitcher.SkinsTool')
        from plone.app.theming.transform import ThemeTransform
        self.assertEqual(ThemeTransform.getSettings.__module__,