PEATDB/Utils.py
def loadDB(prj=None, remote=False, settings={}):
    """Load a local or remote db, settings are the remote db arguments
       such as server, username, password and project name"""
    if settings.has_key('port'):
        settings['port'] = int(settings['port'])
    if remote==True:
        DB = PDatabase(project=prj,**settings)
    else:
        DB = PDatabase(local=prj)
    return DB
Load a local or remote db, settings are the remote db arguments
       such as server, username, password and project name
Load a local or remote db, settings are the remote db arguments
such as server, username, password and project name
Load a local or remote db settings are the remote db arguments such as server username password and project name
def loadDB(prj=None, remote=False, settings={}):
    if settings.has_key('port'):
        settings['port'] = int(settings['port'])
    if remote==True:
        DB = PDatabase(project=prj,**settings)
    else:
        DB = PDatabase(local=prj)
    return DB
def loadDB ( prj = None , remote = False , settings = { } ) : if settings . has_key ( 'port' ) : settings [ 'port' ] = int ( settings [ 'port' ] ) if remote == True : DB = PDatabase ( project = prj , ** settings ) else : DB = PDatabase ( local = prj ) return DB
Load a local or remote db, settings are the remote db arguments
such as server, username, password and project name
Load a local or remote db settings are the remote db arguments such as server username password and project name
"""Load a local or remote db, settings are the remote db arguments
       such as server, username, password and project name"""
prj
remote
settings