Skip to content

Commit 2161f31

Browse files
committed
Link to the documentation, and some dox fixes
1 parent 8fd4277 commit 2161f31

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Bindings for XMLRPC OpenNebula Cloud API
1111

1212
Documentation
1313
-------------
14-
see http://www.opennebula.org/documentation:rel2.0:api
14+
see http://lukaszo.github.com/python-oca/index.html and http://www.opennebula.org/documentation:rel2.0:api
1515

1616
All `allocate` functions are implemented as static methods.
1717

docs/user_guide.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Examples
66

77
Allocating new host::
88

9-
client = oca.Client('user:password', 'http:12.12.12.12:2633/RPC2')
10-
new_host_id = oca.Host.allocate(client, 'host_name', 'im_xen', 'vmm_xen', 'tm_nfs')
11-
hostpool = oca.HostPool(client)
12-
hostpool.info()
13-
for i in hostpool:
14-
if i.id == new_host_id:
15-
vm = i
16-
break
17-
print vm.name, vm.str_state
9+
client = oca.Client('user:password', 'http:12.12.12.12:2633/RPC2')
10+
new_host_id = oca.Host.allocate(client, 'host_name', 'im_xen', 'vmm_xen', 'tm_nfs')
11+
hostpool = oca.HostPool(client)
12+
hostpool.info()
13+
for i in hostpool:
14+
if i.id == new_host_id:
15+
vm = i
16+
break
17+
print vm.name, vm.str_state
1818

1919

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
import os
55

6-
from distutils.core import setup
6+
#from distutils.core import setup
7+
from setuptools import setup
78

89
#borrowed from Pylons project
910
here = os.path.abspath(os.path.dirname(__file__))

0 commit comments

Comments
 (0)