Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(57)  |  Call(26)  |  Derive(0)  |  Import(31)

src/e/r/erp5-HEAD/product/ERP5/ERP5Site.py   erp5(Download)
  def setupDefaultSkins(self, p):
    from Products.CMFCore.DirectoryView import addDirectoryViews
    from Products.CMFActivity import cmfactivity_globals
    ps = p.portal_skins
    self.addCMFDefaultDirectoryViews(p)
    addDirectoryViews(ps, 'skins', cmfactivity_globals)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Extensions/utils.py   Products.Archetypes(Download)
from OFS.ObjectManager import BadRequestException
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.DirectoryView import addDirectoryViews, \
     registerDirectory, manage_listAvailableDirectories
from Products.CMFCore.utils import getToolByName, getPackageName
            raise
    try:
        addDirectoryViews(skinstool, product_skins_dir, globals)
    except BadRequestException, e:
        # TODO: find a better way to do this, but that seems not feasible

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Extensions/utils.py   Products.Archetypes(Download)
from OFS.ObjectManager import BadRequestException
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.DirectoryView import addDirectoryViews, \
     registerDirectory, manage_listAvailableDirectories
from Products.CMFCore.utils import getToolByName, getPackageName
            raise
    try:
        addDirectoryViews(skinstool, product_skins_dir, globals)
    except BadRequestException, e:
        # TODO: find a better way to do this, but that seems not feasible

src/p/r/Products.GroupUserFolder-3.55.1/Products/GroupUserFolder/Extensions/Install.py   Products.GroupUserFolder(Download)
from StringIO import StringIO
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.DirectoryView import addDirectoryViews
from Acquisition import aq_base
from OFS.Folder import manage_addFolder
    if skin_name not in skinstool.objectIds():
        print >>out, "    Adding directory view for GRUF"
        addDirectoryViews(skinstool, 'skins', globals)
 
    for skinName in skinstool.getSkinSelections():

src/p/r/Products.BibfolderFlexibleView-0.4.2/Products/BibfolderFlexibleView/Extensions/Install.py   Products.BibfolderFlexibleView(Download)
from cStringIO import StringIO
 
from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.Expression import Expression
    # Add directory views
    try:  
        addDirectoryViews(skinsTool, 'skins', GLOBALS)
        out.write( "Added directory views to portal_skins.\n" )
    except:

src/p/r/Products.ZSyncer-1.0.3/Products/ZSyncer/Extensions/Install.py   Products.ZSyncer(Download)
"""
 
from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.CMFCore.utils import getToolByName
from Products.ZSyncer import ZSyncerTool, zs_globals 
        # in our skin/ directory.  These directories should already be
        # configured.  skin/ itself is NOT used for an FSDV.
        addDirectoryViews(skinstool, 'skins', zs_globals)
        out.write("Added %s directory view to portal_skins\n" % skinfol_name)
 

src/p/r/Products.PloneSubscription-1.6.3/Products/PloneSubscription/installers/SkinLayersInstaller.py   Products.PloneSubscription(Download)
from Globals import package_home
 
from Products.CMFCore.DirectoryView import addDirectoryViews
 
from utils import InstallerBase
        # Process installation
        try : 
            addDirectoryViews(context.portal_skins, self.layers_dir, context.product_globals)
        except :
            # layer always exist

src/p/r/Products.PloneSubscription-1.6.3/Products/PloneSubscription/installers/SkinInstaller.py   Products.PloneSubscription(Download)
 
 
from Products.CMFCore.DirectoryView import addDirectoryViews
 
from utils import InstallerBase
        installed_skins = context.portal_skins.getSkinSelections()
        if not self.skin_name in installed_skins:
            addDirectoryViews(context.portal_skins, self.layers_dir, context.product_globals)
            # Make [['layer1', 'layer2', ...], ['layer1', 'layer2', ...]]
            paths = [x[1] for x in context.portal_skins.getSkinPaths()]

src/p/r/Products.GroupUserFolder-3.55.1/Products/GroupUserFolder/Installation.py   Products.GroupUserFolder(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.TypesTool import ContentFactoryMetadata
from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.CMFPlone.migrations.migration_util import safeEditProperty
 
        # Install de chaque nouvelle subskin/layer
        try:
            addDirectoryViews(self.skinsTool, 'skins', install_globals)
            self.out.write( "Added directory views to portal_skins.\n" )
        except:

src/p/r/Products.FCKeditor-2.6.6.3/Products/FCKeditor/Extensions/Install.py   Products.FCKeditor(Download)
from StringIO import StringIO
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.DirectoryView import addDirectoryViews
from Products.StandardCacheManagers.AcceleratedHTTPCacheManager import AcceleratedHTTPCacheManager
from Products.CMFCore.utils import getToolByName
def install_subskin(self, out, skin_name, globals=GLOBALS):
    skinstool=getToolByName(self, 'portal_skins')
    if skin_name not in skinstool.objectIds():
        addDirectoryViews(skinstool, 'skins', globals)
 

  1 | 2 | 3 | 4  Next