server_task=server_task+'/exec/'+config_task.api_key+'/' pastafari_folder='pastafari' if hasattr(config, 'pastafari_folder'): pastafari_folder=config.pastafari_folder num_updated_servers=2 if hasattr(config, 'num_updated_servers'): num_updated_servers=config.num_updated_servers load_lang(['paramecio', 'admin'], ['paramecio', 'common']) env=env_theme(__file__) env.directories.insert(1, config.paramecio_root+'/modules/admin/templates') @post('/'+pastafari_folder+'/updateservers') @get('/'+pastafari_folder+'/updateservers') def home(): connection=WebModel.connection() #Fix, make local variable t=PTemplate(env) getpost=GetPostFiles() getpost.obtain_get()
server_task=server_task+'/exec/'+config_task.api_key+'/' pastafari_folder='pastafari' if hasattr(config, 'pastafari_folder'): pastafari_folder=config.pastafari_folder num_updated_servers=2 if hasattr(config, 'num_updated_servers'): num_updated_servers=config.num_updated_servers load_lang(['paramecio', 'admin'], ['paramecio', 'common']) env=env_theme(__file__) env.directories.insert(1, config.paramecio_root+'/modules/admin/templates') @app.post('/'+pastafari_folder+'/maketask') def home(): return base_admin(admin_task, env, 'Make task') def admin_task(connection, t, s, **args): task=Task(connection) getpost=GetPostFiles() getpost.obtain_get()