Revision 675
Added by Borja Sotomayor over 14 years ago
opennebula_xmlrpc.py | ||
---|---|---|
1 | 1 |
import xmlrpclib |
2 | 2 |
import os |
3 | 3 |
import hashlib |
4 |
import xml.etree.ElementTree as ET |
|
5 | 4 |
|
5 |
try: |
|
6 |
import xml.etree.ElementTree as ET |
|
7 |
except ImportError: |
|
8 |
# Compatibility with Python <=2.4 |
|
9 |
import elementtree.ElementTree as ET |
|
10 |
|
|
6 | 11 |
class OpenNebulaXMLRPCClient(object): |
7 | 12 |
def __init__(self, host, port, user, password): |
8 | 13 |
uri = "http://%s:%i" % (host, port) |
Also available in: Unified diff
A few minor changes so Haizea will work with Python 2.4