PEATDB/PEATApp.py
def addDB(self, name, DB):
        """Add DB to current dbs dict"""
        d = {'db':DB}
        if DB.storagetype == 'local':
            d['filename'] = self.filename
        else:
            d['filename'] = None
            d['project'] = self.project
        self.currentDBs[name] = d
        return
Add DB to current dbs dict
Add DB to current dbs dict
Add DB to current dbs dict
def addDB(self, name, DB):
        d = {'db':DB}
        if DB.storagetype == 'local':
            d['filename'] = self.filename
        else:
            d['filename'] = None
            d['project'] = self.project
        self.currentDBs[name] = d
        return
def addDB ( self , name , DB ) : d = { 'db' : DB } if DB . storagetype == 'local' : d [ 'filename' ] = self . filename else : d [ 'filename' ] = None d [ 'project' ] = self . project self . currentDBs [ name ] = d return
Add DB to current dbs dict
Add DB to current dbs dict
"""Add DB to current dbs dict"""
self
name
DB