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

All Samples(354)  |  Call(0)  |  Derive(188)  |  Import(166)
Persistent ExtensionClass

src/e/r/erp5-HEAD/product/ZSQLCatalog/SQLCatalog.py   erp5(Download)
##############################################################################
 
from Persistence import Persistent, PersistentMapping
import Acquisition
import ExtensionClass
class Catalog(Folder,
              Persistent,
              Acquisition.Implicit,
              ActiveObject,
              OFS.History.Historical):

src/e/r/erp5-HEAD/product/HBTreeFolder2/HBTreeFolder2.py   erp5(Download)
from App.class_init import default__class_init__ as InitializeClass
from App.special_dtml import DTMLFile
from Persistence import Persistent, PersistentMapping
from Acquisition import aq_base
from BTrees.OOBTree import OOBTree
class HBTreeFolder2Base (Persistent):
    """Base for BTree-based folders.
    """
 
    security = ClassSecurityInfo()

src/z/o/Zope2-2.13.22/src/HelpSys/APIHelpTopic.py   Zope2(Download)
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.special_dtml import DTMLFile
from Persistence import Persistent
 
from HelpTopic import HelpTopic # XXX relative to avoid cycle
class APIDoc(Persistent):
    """ Describes an API.
    """
 
    security = ClassSecurityInfo()
class AttributeDoc(Persistent):
    """ Describes an attribute of an API.
    """
 
    security = ClassSecurityInfo()
class MethodDoc(Persistent):
    """ Describes a method of an API.
 
    required - a sequence of required arguments
    optional - a sequence of tuples (name, default value)

src/s/p/spambayes-1.1b1/pspam/pspam/profile.py   spambayes(Download)
"""Spam/ham profile for a single VM user."""
 
import ZODB
from ZODB.PersistentList import PersistentList
from Persistence import Persistent
class WordInfo(Persistent):
 
    def __init__(self):
        self.spamcount = self.hamcount = 0
 
class PMetaInfo(Persistent):
    pass
 
class PBayes(classifier.Bayes, Persistent):
 
class Profile(Persistent):
 
    FolderClass = Folder
 
    def __init__(self, folder_dir):

src/e/r/erp5-HEAD/product/ERP5Type/Globals.py   erp5(Download)
# let's try using the new 'persistence' implementation only and see how far we
# can get. This might not be enough for content in old ZODBs, though...
from Persistence import Persistent, PersistentMapping 
from App.special_dtml import HTML, HTMLFile, DTMLFile
from App.Common import package_home

src/z/o/Zope2-2.13.22/src/HelpSys/HelpSys.py   Zope2(Download)
from OFS.ObjectManager import ObjectManager
from OFS.SimpleItem import Item
from Persistence import Persistent
from Products.PluginIndexes.KeywordIndex.KeywordIndex import KeywordIndex
from Products.ZCatalog.Lazy import LazyCat
class HelpSys(Implicit, ObjectManager, Item, Persistent):
    """
    Zope Help System
 
    Provides browsing and searching of Zope Product Help.
class ProductHelp(Implicit, ObjectManager, Item, Persistent):
    """
    Manages a collection of Help Topics for a given Product.
 
    Provides searching services to HelpSystem.

src/z/o/Zope2-2.13.22/src/Products/SiteAccess/VirtualHostMonster.py   Zope2(Download)
from App.special_dtml import DTMLFile
from OFS.SimpleItem import Item
from Persistence import Persistent
from ZPublisher.BeforeTraverse import NameCaller
from ZPublisher.BeforeTraverse import queryBeforeTraverse
class VirtualHostMonster(Persistent, Item, Implicit):
    """Provide a simple drop-in solution for virtual hosting.
    """
 
    meta_type='Virtual Host Monster'

src/z/o/Zope2-2.13.22/src/Products/SiteAccess/SiteRoot.py   Zope2(Download)
from App.special_dtml import DTMLFile
from OFS.SimpleItem import Item
from Persistence import Persistent
from ZPublisher.BeforeTraverse import NameCaller
from ZPublisher.BeforeTraverse import registerBeforeTraverse
from ZPublisher.BeforeTraverse import unregisterBeforeTraverse
 
SUPPRESS_SITEROOT = os.environ.has_key('SUPPRESS_SITEROOT')
 
class Traverser(Persistent, Item):

src/z/o/Zope2-2.13.22/src/App/Permission.py   Zope2(Download)
from OFS.role import RoleManager
from OFS.SimpleItem import Item
from Persistence import Persistent
 
class Permission(RoleManager,

src/a/c/AccessControl-3.0.8/src/AccessControl/userfolder.py   AccessControl(Download)
from Acquisition import aq_parent
from Acquisition import Implicit
from Persistence import Persistent
from Persistence import PersistentMapping
from zExceptions import BadRequest
class BasicUserFolder(Implicit, Persistent, RoleManager):
    """Base class for UserFolder-like objects"""
 
    meta_type = 'User Folder'
    id = 'acl_users'

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