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

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/p/e/PEATDB-2.3/PEATDB/Base.py   PEATDB(Download)
from ZODB.PersistentMapping import PersistentMapping
from ZODB.blob import Blob
from PEATDB.Record import Record, PEATRecord, Meta, FileRecord
from time import time
 
           All objects added to dbroot should be persistent aware"""
        self.data = self.dbroot['data'] = OOBTree()
        self.meta = self.dbroot['meta'] = Meta('PEAT-DB database')
        self.meta.staticfields = { 'name': 'text', 'Mutations':'text',
                                     'Structure':'PDB'}

src/p/e/PEATDB-2.3/PEATDB/Sandbox.py   PEATDB(Download)
from ZODB.PersistentList import PersistentList
from ZODB.blob import Blob
from PEATDB.Record import PEATRecord, Meta, FileRecord
from time import time
 
        self.records = self.dbroot['records'] = OOBTree()
        #meta is used for all other non-record stuff
        self.meta = self.dbroot['meta'] = Meta('PEAT-DB database')
        self.meta.staticfields = { 'Name': 'text', 'Mutations':'text',
                                     'Structure':'PDB'}

src/p/e/PEATDB-2.3/PEATDB/zodbtest.py   PEATDB(Download)
from ZODB.PersistentList import PersistentList
from PEATDB.Base import PDatabase, zDatabase
from PEATDB.Record import PEATRecord, Meta, FileRecord
from PEATDB.Ekin.Base import EkinProject
from Actions import DBActions