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

All Samples(14)  |  Call(2)  |  Derive(4)  |  Import(8)

src/p/r/Products.TrustedExecutables-1.0.3/Products/TrustedExecutables/TrustedFSPythonScript.py   Products.TrustedExecutables(Download)
import linecache, os
 
from Products.CMFCore.FSPythonScript import \
     FSPythonScript, \
     registerFileExtension
class TrustedFSPythonScript(_UnCustomizable, TrustedPythonScriptMixin, FSPythonScript):
  meta_type = 'Trusted Filesystem Python Script'
 
  def _write(self, *args, **kw):
    _rebound_write(self, *args, **kw)

src/p/l/plone.app.themeeditor-1.0a8/plone/app/themeeditor/cmf.py   plone.app.themeeditor(Download)
from OFS.Image import Image
from Products.CMFCore.FSImage import FSImage
from Products.CMFCore.FSPythonScript import FSPythonScript, CustomizedPythonScript
from Products.CMFFormController.FSControllerValidator import FSControllerValidator
from Products.CMFFormController.FSControllerPythonScript import FSControllerPythonScript

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/FSBLProcess.py   Products.BastionLedger(Download)
     DirectoryView, DirectoryViewSurrogate, DirectoryRegistry, DirectoryInformation, \
     _generateKey, _findProductForPath
from Products.CMFCore.FSPythonScript import FSPythonScript
from Products.CMFCore.FSPageTemplate import FSPageTemplate
from Products.CMFCore.FSPropertiesObject import FSPropertiesObject
class FSBLEntryTemplate(FSPythonScript, BLEntryTemplate):
    """
    A File system BLEntryTemplate
    """
    meta_type = portal_type = 'FSBLEntryTemplate'
class FSBLTransactionTemplate(FSPythonScript):
    """
    A File system BLTransactionTemplate
    """
    meta_type = portal_type = 'FSBLTransactionTemplate'

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/Script.py   Products.CMFFormController(Download)
from Shared.DC.Scripts.Bindings import NameAssignments as BaseNameAssignments
from Products.PythonScripts.PythonScript import PythonScript as BasePythonScript
from Products.CMFCore.FSPythonScript import FSPythonScript as BaseFSPythonScript
from ZODB.POSException import ConflictError
 
class FSPythonScript(BaseFSPythonScript, PythonScript):
    def _createZODBClone(self):
        """Create a ZODB (editable) equivalent of this object."""
        obj = PythonScript(self.getId(), filepath=self._filepath)
        obj.write(self.read())

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_FSPythonScript.py   Products.CMFCore(Download)
 
from Products.CMFCore.FSMetadata import FSMetadata
from Products.CMFCore.FSPythonScript import FSPythonScript
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.enablesettrace-1.1/Products/enablesettrace/monkeypatch.py   Products.enablesettrace(Download)
# CMF-specific bits
try:
    from Products.CMFCore.FSPythonScript import FSPythonScript
except ImportError:
    # a dummy class, so isinstance lower down should never return true

src/w/i/WingDBG-5.0rc2/WingDBG/ScriptDebugging.py   WingDBG(Download)
 
try:
    from Products.CMFCore.FSPythonScript import FSPythonScript
except ImportError:
    FSPythonScript = None

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/tests/test_FSPythonScript.py   Products.FileSystemSite(Download)
from Products.StandardCacheManagers import RAMCacheManager
 
from Products.CMFCore.FSPythonScript import FSPythonScript
from Products.CMFCore.FSMetadata import FSMetadata
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 FSPythonScript( id, path, properties=metadata.getProperties() )