PEATDB/Sandbox.py
def createData(self):
        """Create a OOBTree object for the root Protein data and a
           seperate object for meta data like userfields.
           All objects directly added to dbroot should be persistent aware
           New db adds each cell individually, not whole rec structure
        """
        self.data = self.dbroot['data'] = OOBTree()
        #self.records = self.dbroot['records'] = PersistentList()
        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'}
        self.cellcache = self.dbroot['cellcache'] = OOBTree()
        self.blobs = self.dbroot['blobs'] = OOBTree()
        self.meta.usedisplaycache = False
        #use meta.info for any misc settings specific to the DB
        self.meta.info = PersistentMapping({'project': '', 'users':'', 'cachesize':100})
        #try to limit no of objects to store in RAM
        self.meta.cachesize = 100
        self.commit()
        return
Create a OOBTree object for the root Protein data and a
           seperate object for meta data like userfields.
           All objects directly added to dbroot should be persistent aware
           New db adds each cell individually, not whole rec structure
        
Create a OOBTree object for the root Protein data and a
seperate object for meta data like userfields.
All objects directly added to dbroot should be persistent aware
New db adds each cell individually, not whole rec structure
Create a OOBTree object for the root Protein data and a seperate object for meta data like userfields . All objects directly added to dbroot should be persistent aware New db adds each cell individually not whole rec structure
def createData(self):
        self.data = self.dbroot['data'] = OOBTree()
        self.records = self.dbroot['records'] = OOBTree()
        self.meta = self.dbroot['meta'] = Meta('PEAT-DB database')
        self.meta.staticfields = { 'Name': 'text', 'Mutations':'text',
                                     'Structure':'PDB'}
        self.cellcache = self.dbroot['cellcache'] = OOBTree()
        self.blobs = self.dbroot['blobs'] = OOBTree()
        self.meta.usedisplaycache = False
        self.meta.info = PersistentMapping({'project': '', 'users':'', 'cachesize':100})
        self.meta.cachesize = 100
        self.commit()
        return
def createData ( self ) : self . data = self . dbroot [ 'data' ] = OOBTree ( ) self . records = self . dbroot [ 'records' ] = OOBTree ( ) self . meta = self . dbroot [ 'meta' ] = Meta ( 'PEAT-DB database' ) self . meta . staticfields = { 'Name' : 'text' , 'Mutations' : 'text' , 'Structure' : 'PDB' } self . cellcache = self . dbroot [ 'cellcache' ] = OOBTree ( ) self . blobs = self . dbroot [ 'blobs' ] = OOBTree ( ) self . meta . usedisplaycache = False self . meta . info = PersistentMapping ( { 'project' : '' , 'users' : '' , 'cachesize' : 100 } ) self . meta . cachesize = 100 self . commit ( ) return
Create a OOBTree object for the root Protein data and a
seperate object for meta data like userfields.
Create a OOBTree object for the root Protein data and a seperate object for meta data like userfields .
"""Create a OOBTree object for the root Protein data and a
           seperate object for meta data like userfields.
           All objects directly added to dbroot should be persistent aware
           New db adds each cell individually, not whole rec structure
        """ #self.records = self.dbroot['records'] = PersistentList() #meta is used for all other non-record stuff #use meta.info for any misc settings specific to the DB #try to limit no of objects to store in RAM
self