Did I find the right examples for you? yes no

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

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/utils.py   plone.app.theming(Download)
 
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
from plone.app.theming.interfaces import IThemeSettings
    """
 
    resourceName, manifestDict = extractManifestFromZipFile(zipfile, MANIFEST_FORMAT)
 
    rulesFile = None
def getTheme(name, manifest=None, resources=None):
    if manifest is None:
        if resources is None:
            resources = getAllResources(
                MANIFEST_FORMAT, filter=isValidThemeDirectory)
def getAvailableThemes():
    """Get a list of all ITheme's available in resource directories.
    """
 
    resources = getAllResources(MANIFEST_FORMAT, filter=isValidThemeDirectory)
    if resourceDirectory.isFile(MANIFEST_FILENAME):
        manifest = getManifest(
            resourceDirectory.openFile(MANIFEST_FILENAME), MANIFEST_FORMAT)
 
        title = manifest['title'] or title

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/utils.py   plone.app.theming(Download)
 
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
from plone.app.theming.interfaces import IThemeSettings
    """
 
    resourceName, manifestDict = extractManifestFromZipFile(zipfile, MANIFEST_FORMAT)
 
    rulesFile = None
def getTheme(name, manifest=None, resources=None):
    if manifest is None:
        if resources is None:
            resources = getAllResources(
                MANIFEST_FORMAT, filter=isValidThemeDirectory)
def getAvailableThemes():
    """Get a list of all ITheme's available in resource directories.
    """
 
    resources = getAllResources(MANIFEST_FORMAT, filter=isValidThemeDirectory)
    if resourceDirectory.isFile(MANIFEST_FILENAME):
        manifest = getManifest(
            resourceDirectory.openFile(MANIFEST_FILENAME), MANIFEST_FORMAT)
 
        title = manifest['title'] or title