PEATDB/Utils.py
def copyDBtoServer(DB, prj, settings):
    """Copy the contents of a local db to a remote one, requires
      settings to make the remote connection and get
      the remote db object"""
    remoteDB = loadDB(prj, remote=True, settings=settings)
    print 'source db: %s, remote db: %s' %(DB, remoteDB)
    newDB = copyDB(DB, remoteDB)
    newDB.commit(note='copy')
    return True
Copy the contents of a local db to a remote one, requires
      settings to make the remote connection and get
      the remote db object
Copy the contents of a local db to a remote one, requires
settings to make the remote connection and get
the remote db object
Copy the contents of a local db to a remote one requires settings to make the remote connection and get the remote db object
def copyDBtoServer(DB, prj, settings):
    remoteDB = loadDB(prj, remote=True, settings=settings)
    print 'source db: %s, remote db: %s' %(DB, remoteDB)
    newDB = copyDB(DB, remoteDB)
    newDB.commit(note='copy')
    return True
def copyDBtoServer ( DB , prj , settings ) : remoteDB = loadDB ( prj , remote = True , settings = settings ) print 'source db: %s, remote db: %s' % ( DB , remoteDB ) newDB = copyDB ( DB , remoteDB ) newDB . commit ( note = 'copy' ) return True
Copy the contents of a local db to a remote one, requires
settings to make the remote connection and get
the remote db object
Copy the contents of a local db to a remote one requires settings to make the remote connection and get the remote db object
"""Copy the contents of a local db to a remote one, requires
      settings to make the remote connection and get
      the remote db object"""
DB
prj
settings