Log In | Get Help   
Home My Page Projects Code Snippets Project Openings BonFIRE VCOC Demonstration Kit
Summary Activity SCM Files Wiki
[bonfiredemokit] View of /ea/xml_creator.py
[bonfiredemokit] / ea / xml_creator.py Repository:
ViewVC logotype

View of /ea/xml_creator.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (download) (as text) (annotate)
Tue Oct 9 16:17:03 2012 UTC (11 years, 7 months ago) by agomez
File size: 1124 byte(s)
Changed comments to English and test
#
# BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
#
# Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
# 
# License Apache Software
#
# The research leading to these results has received funding from 
# the European Community's Seventh Framework Programme (FP7/2007-2013) 
# under agreement number 257386
#
# This software is provided with ABSOLUTELY NO WARRANTY
# 
'''
Created on 16/03/2012

@author: cesga
'''
import xml.etree.ElementTree as tree


def xml_creator():
    """ Return a xml string with the storage"""
    
    top = tree.Element('storage xmlns="http://api.bonfire-project.eu/doc/schemas/occi"')
    #comment = Comment('Generated for PyMOTW')
    #top.append(comment)
    child = tree.SubElement(top, 'name')
    child.text = 'pruebadata'
    child = tree.SubElement(top, 'persistent')
    child.text = 'YES'
    child = tree.SubElement(top, 'size')
    child.text = '1024'
    child = tree.SubElement(top, 'type')
    child.text = 'DATABLOCK'
    child = tree.SubElement(top, 'fstype')
    child.text = 'ext3'
    
    return tree.
    



print xml_creator()

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge