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

All Samples(30)  |  Call(16)  |  Derive(0)  |  Import(14)

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/ControllerBase.py   Products.CMFFormController(Download)
from Products.CMFCore.permissions import View, ManagePortal
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.FSMetadata import FSMetadata, CMFConfigParser
from FormAction import FormAction, FormActionContainer
from FormValidator import FormValidator, FormValidatorContainer
    def _read_action_metadata(self, id, filepath):
        self.actions = FormActionContainer()
 
        metadata = FSMetadata(filepath)
        cfg = CMFConfigParser()
    def _read_validator_metadata(self, id, filepath):
        self.validators = FormValidatorContainer()
 
        metadata = FSMetadata(filepath)
        cfg = CMFConfigParser()

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/DirectoryView.py   Products.CMFCore(Download)
from zope.interface import implements
 
from Products.CMFCore.FSMetadata import FSMetadata
from Products.CMFCore.FSObject import BadFile
from Products.CMFCore.interfaces import IDirectoryView
                    if t is None:
                        t = DirectoryView
                    metadata = FSMetadata(entry_filepath)
                    metadata.read()
                    ob = t( entry
 
                if t is not None:
                    metadata = FSMetadata(entry_filepath)
                    metadata.read()
                    try:

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/FSControllerBase.py   Products.CMFFormController(Download)
from App.class_init import InitializeClass
import Globals
from Products.CMFCore.FSMetadata import FSMetadata
from ControllerBase import ControllerBase
 
    def _baseReadMetadata(self):
        # re-read .metadata file if it exists
        e_fp = self._filepath + '.metadata'
        if os.path.exists(e_fp):
            metadata = FSMetadata(e_fp)

src/c/o/collective.portlet.ngcollection-1.4/collective/portlet/ngcollection/manager.py   collective.portlet.ngcollection(Download)
from collective.portlet.ngcollection import migration
 
from Products.CMFCore.FSMetadata import FSMetadata
 
osjoin = os.path.join
                path = osjoin(directory, filename)
                tmplkey = getTemplateKey(dirkey, filename)
                metadata = FSMetadata(path)
                metadata.read()
                properties = metadata.getProperties()

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/tests/test_FSPythonScript.py   Products.FileSystemSite(Download)
 
from Products.CMFCore.FSPythonScript import FSPythonScript
from Products.CMFCore.FSMetadata import FSMetadata
from Products.CMFCore.tests.base.testcase import FSDVTest
from Products.CMFCore.tests.base.testcase import SecurityTest
    def _makeOne( self, id, filename ):
        path = join(self.skin_path_name, filename)
        metadata = FSMetadata(path)
        metadata.read()
        return FSPythonScript( id, path, properties=metadata.getProperties() ) 

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/tests/test_FSPageTemplate.py   Products.FileSystemSite(Download)
 
from Products.CMFCore.FSPageTemplate import FSPageTemplate
from Products.CMFCore.FSMetadata import FSMetadata
from Products.CMFCore.tests.base.dummy import DummyCachingManager
from Products.CMFCore.tests.base.testcase import FSDVTest
    def _makeOne( self, id, filename ):
        path = path_join(self.skin_path_name, filename)
        metadata = FSMetadata(path)
        metadata.read()
        return FSPageTemplate( id, path, properties=metadata.getProperties() )

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/tests/test_FSFile.py   Products.FileSystemSite(Download)
    def _makeOne( self, id, filename ):
 
        from Products.CMFCore.FSFile import FSFile
        from Products.CMFCore.FSMetadata import FSMetadata
 
        full_path = path_join(self.skin_path_name, filename)
        metadata = FSMetadata(full_path)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_FSZSQLMethod.py   Products.CMFCore(Download)
from OFS.Folder import Folder
 
from Products.CMFCore.FSMetadata import FSMetadata
from Products.CMFCore.FSZSQLMethod import FSZSQLMethod
from Products.CMFCore.tests.base.testcase import FSDVTest
    def _makeOne( self, id, filename ):
        path = join(self.skin_path_name, filename)
        metadata = FSMetadata(path)
        metadata.read()
        return FSZSQLMethod( id, path, properties=metadata.getProperties() )

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_FSSTXMethod.py   Products.CMFCore(Download)
    def _makeOne( self, id, filename ):
        from Products.CMFCore.FSMetadata import FSMetadata
        from Products.CMFCore.FSSTXMethod import FSSTXMethod
        path = os.path.join(self.skin_path_name, filename)
        metadata = FSMetadata(path)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_FSReSTMethod.py   Products.CMFCore(Download)
    def _makeOne( self, id, filename ):
        from Products.CMFCore.FSMetadata import FSMetadata
        from Products.CMFCore.FSReSTMethod import FSReSTMethod
        path = os.path.join(self.skin_path_name, filename)
        metadata = FSMetadata(path)

  1 | 2  Next