Revision 9 -
(download)
(as text)
(annotate)
Thu Aug 30 12:48:07 2012 UTC
(11 years, 9 months ago)
by agomez File size: 934 byte(s)
Added license text
#
# BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
#
# Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
#
# License GPL Version 3
#
# The research leading to these results has received funding from
# the European Community's Seventh Frameqork Programme (FP7/2007-2013)
# under agreement number 257386
#
# This software is provided with ABSOLUTELY NO WARRANTY
#
'''
Created on 16/03/2012
@author: cesga
'''
import time
import sub_pycurl as em
import xml_conv
import xml_creator as xmlc
import credentials as cr
user = cr.getuser('~/.restfully/api.bonfire-project.eu.yml')
passwd = cr.getpass('~/.restfully/api.bonfire-project.eu.yml')
theurl = 'https://api.bonfire-project.eu/'
raiz = 'https://api.bonfire-project.eu/'
exp=xmlc.xml_creator()
print exp
job = em.sub()
job.user = user
job.passwd = passwd
respuesta = job.submit_xml(theurl, exp)
print "respuesta", respuesta