PEATDB/scripts/multiProjects.py
def send2Server(projects):
    """Send all projects to remote versions"""
    settings={'server':'enzyme.ucd.ie','username':'guest',
               'password':'123','port':8080}
    adminsettings={'host':'enzyme.ucd.ie','user':'peatadmin',
               'passwd':'nielsen','port':8080}    
    '''for p in projects:
        print p
        DB = PDatabase(local=os.path.join(savepath,p))
        Utils.createDBonServer(prj=p,settings=adminsettings,
                               access='guest')
        Utils.copyDBtoServer(DB,p,settings)'''
        
    DB = PDatabase(local='summary.fs')
    Utils.copyDBtoServer(DB,'PotapovDataset',settings)
    return
Send all projects to remote versions
Send all projects to remote versions
Send all projects to remote versions
def send2Server(projects):
    settings={'server':'enzyme.ucd.ie','username':'guest',
               'password':'123','port':8080}
    adminsettings={'host':'enzyme.ucd.ie','user':'peatadmin',
               'passwd':'nielsen','port':8080}    
    DB = PDatabase(local='summary.fs')
    Utils.copyDBtoServer(DB,'PotapovDataset',settings)
    return
def send2Server ( projects ) : settings = { 'server' : 'enzyme.ucd.ie' , 'username' : 'guest' , 'password' : '123' , 'port' : 8080 } adminsettings = { 'host' : 'enzyme.ucd.ie' , 'user' : 'peatadmin' , 'passwd' : 'nielsen' , 'port' : 8080 } '''for p in projects:
        print p
        DB = PDatabase(local=os.path.join(savepath,p))
        Utils.createDBonServer(prj=p,settings=adminsettings,
                               access='guest')
        Utils.copyDBtoServer(DB,p,settings)''' DB = PDatabase ( local = 'summary.fs' ) Utils . copyDBtoServer ( DB , 'PotapovDataset' , settings ) return
Send all projects to remote versions
Send all projects to remote versions
"""Send all projects to remote versions""" '''for p in projects:
        print p
        DB = PDatabase(local=os.path.join(savepath,p))
        Utils.createDBonServer(prj=p,settings=adminsettings,
                               access='guest')
        Utils.copyDBtoServer(DB,p,settings)'''
projects