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

All Samples(780)  |  Call(435)  |  Derive(0)  |  Import(345)

src/c/o/Community-Zenpacks-HEAD/ZenPacks.example.Techniques/ZenPacks/example/Techniques/__init__.py   Community-Zenpacks(Download)
import os.path
 
import Globals
from Products.CMFCore.DirectoryView import registerDirectory
from Products.ZenModel.ZenossSecurity import ZEN_VIEW
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
if os.path.isdir(skinsDir):
    registerDirectory(skinsDir, globals())
 
from Products.ZenModel.ZenPack import ZenPackBase

src/p/r/Products.ExternalStorage-0.8.1/Products/ExternalStorage/example/ExternalExample/__init__.py   Products.ExternalStorage(Download)
from Products.CMFCore.utils import ContentInit
from Products.CMFCore.DirectoryView import registerDirectory
from Products.Archetypes.public import process_types, listTypes
 
from config import SKINS_DIR, GLOBALS, PROJECTNAME
from config import ADD_CONTENT_PERMISSION
 
registerDirectory(SKINS_DIR, GLOBALS)

src/z/e/ZenPacks.skills1st.MenuExamples-HEAD/ZenPacks/skills1st/MenuExamples/__init__.py   ZenPacks.skills1st.MenuExamples(Download)
#
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
from Products.CMFCore.DirectoryView import registerDirectory
if os.path.isdir(skinsDir):
    registerDirectory(skinsDir, globals())

src/p/r/Products.sampleremember-1.1b2/Products/sampleremember/__init__.py   Products.sampleremember(Download)
from Products.Archetypes import public as atapi
from Products.CMFCore import utils as cmf_utils
from Products.CMFCore.DirectoryView import registerDirectory
from Products.CMFPlone.interfaces import IPloneSiteRoot
 
 
# Register the skins directory
registerDirectory(config.SKINS_DIR, config.GLOBALS)
 
def initialize(context):

src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/examples/mypamodel/__init__.py   Products.PloneArticle(Download)
from config import GLOBALS
 
DirectoryView.registerDirectory('skins', 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
    if registry_key not in registered_directories:
        try:
            registerDirectory(product_skins_dir, globals)
        except OSError, ex:
            if ex.errno == 2:  # No such file or directory

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
    if registry_key not in registered_directories:
        try:
            registerDirectory(product_skins_dir, globals)
        except OSError, ex:
            if ex.errno == 2:  # No such file or directory

src/c/o/Community-Zenpacks-HEAD/ZenPacks.PlixerInternational.Scrutinizer/ZenPacks/PlixerInternational/Scrutinizer/__init__.py   Community-Zenpacks(Download)
from Products.ZenModel.ZenossSecurity import ZEN_COMMON
from Products.ZenUtils.Utils import zenPath
from Products.CMFCore.DirectoryView import registerDirectory
from time import localtime,strftime
import re
import Globals
import os.path
 
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
from Products.CMFCore.DirectoryView import registerDirectory
from Products.CMFCore.DirectoryView import registerDirectory
if os.path.isdir(skinsDir):
    registerDirectory(skinsDir, globals())
 
from Products.ZenModel.ZenPack import ZenPackBase

src/c/o/Community-Zenpacks-HEAD/ZenPacks.fdeckert.reports/ZenPacks/fdeckert/reports/__init__.py   Community-Zenpacks(Download)
from Products.ZenModel.ZenossSecurity import ZEN_COMMON
from Products.ZenUtils.Utils import zenPath
from Products.CMFCore.DirectoryView import registerDirectory
from time import localtime,strftime
import re
import Globals
import os
 
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
from Products.CMFCore.DirectoryView import registerDirectory
from Products.CMFCore.DirectoryView import registerDirectory
if os.path.isdir(skinsDir):
    registerDirectory(skinsDir, globals())
 
from Products.ZenModel.ZenPack import ZenPackBase

src/c/o/Community-Zenpacks-HEAD/ZenPacks.fdeckert.myeventviews/ZenPacks/fdeckert/myeventviews/__init__.py   Community-Zenpacks(Download)
from Products.ZenModel.ZenossSecurity import ZEN_COMMON
from Products.ZenUtils.Utils import zenPath
from Products.CMFCore.DirectoryView import registerDirectory
from time import localtime,strftime
import re
import Globals
import os
 
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
from Products.CMFCore.DirectoryView import registerDirectory
from Products.CMFCore.DirectoryView import registerDirectory
if os.path.isdir(skinsDir):
    registerDirectory(skinsDir, globals())
 
from Products.ZenModel.ZenPack import ZenPackBase

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next