Did I find the right examples for you? yes no

All Samples(18)  |  Call(0)  |  Derive(0)  |  Import(18)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.app.theming.interfaces import _
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import RULE_FILENAME
from plone.app.theming.interfaces import DEFAULT_THEME_FILENAME
                themeContainer.importZip(themeZip)
 
                themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, themeData.__name__)
                if themeDirectory is not None:
 
                    # If we don't have a rules file, use the template
                    if themeData.rules == u"/++%s++%s/%s" % (THEME_RESOURCE_NAME, themeData.__name__, RULE_FILENAME,):
                        if not themeDirectory.isFile(RULE_FILENAME):
                            templateThemeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, TEMPLATE_THEME)

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/controlpanel.py   plone.app.theming(Download)
from plone.app.theming.interfaces import _
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import RULE_FILENAME
from plone.app.theming.interfaces import DEFAULT_THEME_FILENAME
                themeContainer.importZip(themeZip)
 
                themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, themeData.__name__)
                if themeDirectory is not None:
 
                    # If we don't have a rules file, use the template
                    if themeData.rules == u"/++%s++%s/%s" % (THEME_RESOURCE_NAME, themeData.__name__, RULE_FILENAME,):
                        if not themeDirectory.isFile(RULE_FILENAME):
                            templateThemeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, TEMPLATE_THEME)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/utils.py   plone.app.theming(Download)
from plone.i18n.normalizer.interfaces import IURLNormalizer
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import MANIFEST_FORMAT
from plone.app.theming.interfaces import RULE_FILENAME
 
    persistentDirectory = getUtility(IResourceDirectory, name="persistent")
    if THEME_RESOURCE_NAME not in persistentDirectory:
        persistentDirectory.makeDirectory(THEME_RESOURCE_NAME)
 
    return persistentDirectory[THEME_RESOURCE_NAME]
 
    rulesFile = None
    absolutePrefix = '/++%s++%s' % (THEME_RESOURCE_NAME, resourceName)
    title = None
    description = None

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/utils.py   plone.app.theming(Download)
from plone.i18n.normalizer.interfaces import IURLNormalizer
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import MANIFEST_FORMAT
from plone.app.theming.interfaces import RULE_FILENAME
 
    persistentDirectory = getUtility(IResourceDirectory, name="persistent")
    if THEME_RESOURCE_NAME not in persistentDirectory:
        persistentDirectory.makeDirectory(THEME_RESOURCE_NAME)
 
    return persistentDirectory[THEME_RESOURCE_NAME]
 
    rulesFile = None
    absolutePrefix = '/++%s++%s' % (THEME_RESOURCE_NAME, resourceName)
    title = None
    description = None

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/browser/mapper.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import RULE_FILENAME
from plone.app.theming.interfaces import THEME_EXTENSIONS
 
        self.portalUrl = getToolByName(self.context, 'portal_url')()
        self.themeBasePath = "++%s++%s" % (THEME_RESOURCE_NAME, self.name,)
        self.themeBasePathEncoded = urllib.quote_plus(self.themeBasePath)
        self.themeBaseUrl = "%s/%s" % (self.portalUrl, self.themeBasePath,)

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/browser/mapper.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import RULE_FILENAME
from plone.app.theming.interfaces import THEME_EXTENSIONS
 
        self.portalUrl = getToolByName(self.context, 'portal_url')()
        self.themeBasePath = "++%s++%s" % (THEME_RESOURCE_NAME, self.name,)
        self.themeBasePathEncoded = urllib.quote_plus(self.themeBasePath)
        self.themeBaseUrl = "%s/%s" % (self.portalUrl, self.themeBasePath,)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/plugins/utils.py   plone.app.theming(Download)
from plone.resource.manifest import MANIFEST_FILENAME
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import IThemePlugin
 
    pluginSettings = {}
    for name, plugin in plugins:
        pluginSettings[name] = manifestContents.get("%s:%s" % (THEME_RESOURCE_NAME, name), {})
 
    return pluginSettings

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/plugins/utils.py   plone.app.theming(Download)
from plone.resource.manifest import MANIFEST_FILENAME
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.interfaces import IThemePlugin
 
    pluginSettings = {}
    for name, plugin in plugins:
        pluginSettings[name] = manifestContents.get("%s:%s" % (THEME_RESOURCE_NAME, name), {})
 
    return pluginSettings

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
from plone.resource.utils import queryResourceDirectory
from plone.resource.utils import iterDirectoriesOfType
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
    plugins = getPlugins()
 
    for themeDirectory in iterDirectoriesOfType(THEME_RESOURCE_NAME):
        pluginSettings = getPluginSettings(themeDirectory, plugins)
 
        return
 
    themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, theme)
    if themeDirectory is None:
        return

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/plugins/hooks.py   plone.app.theming(Download)
from plone.resource.utils import queryResourceDirectory
from plone.resource.utils import iterDirectoriesOfType
 
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
 
    plugins = getPlugins()
 
    for themeDirectory in iterDirectoriesOfType(THEME_RESOURCE_NAME):
        pluginSettings = getPluginSettings(themeDirectory, plugins)
 
        return
 
    themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, theme)
    if themeDirectory is None:
        return

  1 | 2  Next