PEATDB/Base.py
def createData(self):
        """Create a BTree object for the root Protein data and a
           seperate object for meta data like userfields.
           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'}
        self.blobs = self.dbroot['blobs'] = OOBTree()       
        #use meta.info for any misc settings specific to the DB
        self.meta.info = PersistentMapping(self.defaultinfo)
        self.commit()
        return
Create a BTree object for the root Protein data and a
           seperate object for meta data like userfields.
           All objects added to dbroot should be persistent aware
Create a BTree object for the root Protein data and a
seperate object for meta data like userfields.
All objects added to dbroot should be persistent aware
Create a BTree object for the root Protein data and a seperate object for meta data like userfields . All objects added to dbroot should be persistent aware
def createData(self):
        self.data = self.dbroot['data'] = OOBTree()
        self.meta = self.dbroot['meta'] = Meta('PEAT-DB database')
        self.meta.staticfields = { 'name': 'text', 'Mutations':'text',
                                     'Structure':'PDB'}
        self.blobs = self.dbroot['blobs'] = OOBTree()       
        self.meta.info = PersistentMapping(self.defaultinfo)
        self.commit()
        return
def createData ( self ) : self . data = self . dbroot [ 'data' ] = OOBTree ( ) self . meta = self . dbroot [ 'meta' ] = Meta ( 'PEAT-DB database' ) self . meta . staticfields = { 'name' : 'text' , 'Mutations' : 'text' , 'Structure' : 'PDB' } self . blobs = self . dbroot [ 'blobs' ] = OOBTree ( ) self . meta . info = PersistentMapping ( self . defaultinfo ) self . commit ( ) return
Create a BTree object for the root Protein data and a
seperate object for meta data like userfields.
Create a BTree object for the root Protein data and a seperate object for meta data like userfields .
"""Create a BTree object for the root Protein data and a
           seperate object for meta data like userfields.
           All objects added to dbroot should be persistent aware""" #use meta.info for any misc settings specific to the DB
self