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

All Samples(10)  |  Call(0)  |  Derive(6)  |  Import(4)
Cache management mix-in
    

src/z/o/Zope2-2.13.22/src/App/ApplicationManager.py   Zope2(Download)
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import Implicit
from App.CacheManager import CacheManager
from App.config import getConfiguration
from App.DavLockManager import DavLockManager
class ApplicationManager(Folder,CacheManager):
    """System management
    """
    __roles__ = ('Manager',)
    isPrincipiaFolderish = 1
class AltDatabaseManager(DatabaseManager, CacheManager):
    """ Database management DBTab-style
    """
    db_name = ApplicationManager.db_name.im_func
    db_size = ApplicationManager.db_size.im_func

src/z/o/Zope-HEAD/src/App/ApplicationManager.py   Zope(Download)
from AccessControl.requestmethod import requestmethod
from Acquisition import Implicit
from App.CacheManager import CacheManager
from App.config import getConfiguration
from App.DavLockManager import DavLockManager
class ApplicationManager(Folder, CacheManager):
    """System management
    """
    __roles__ = ('Manager',)
    isPrincipiaFolderish = 1
class AltDatabaseManager(DatabaseManager, CacheManager):
    """ Database management DBTab-style
    """
    db_name = ApplicationManager.db_name.im_func
    db_size = ApplicationManager.db_size.im_func

src/z/o/Zope-HEAD/src/App/tests/test_cachemanager.py   Zope(Download)
    def _getManagerClass(self):
        from App.CacheManager import CacheManager
        class TestCacheManager(CacheManager):
            # Derived CacheManager that fakes enough of the DatabaseManager to
            # make it possible to test at least some parts of the CacheManager.

src/z/o/Zope2-2.13.22/src/App/tests/test_cachemanager.py   Zope2(Download)
    def _getManagerClass(self):
        from App.CacheManager import CacheManager
        class TestCacheManager(CacheManager):
            # Derived CacheManager that fakes enough of the DatabaseManager to
            # make it possible to test at least some parts of the CacheManager.