Did I find the right examples for you? yes no

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

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
    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
    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/tests/test_utils.py   plone.app.theming(Download)
    def test_getZODBThemes(self):
        import zipfile
        import os.path
        from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
        from plone.app.theming.utils import getZODBThemes
        themeContainer.importZip(z)
 
        zodbThemes = getZODBThemes()
 
        self.assertEqual(len(zodbThemes), 1)

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_controlpanel.py   plone.app.theming(Download)
from Products.CMFCore.utils import getToolByName
 
from plone.app.theming.utils import getZODBThemes, getTheme
 
 

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
    def test_getZODBThemes(self):
        import zipfile
        import os.path
        from plone.app.theming.utils import getOrCreatePersistentResourceDirectory
        from plone.app.theming.utils import getZODBThemes
        themeContainer.importZip(z)
 
        zodbThemes = getZODBThemes()
 
        self.assertEqual(len(zodbThemes), 1)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_controlpanel.py   plone.app.theming(Download)
from Products.CMFCore.utils import getToolByName
 
from plone.app.theming.utils import getZODBThemes, getTheme