Fix docstrings order. Add backup index to docs

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b3398da1
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b3398da1
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b3398da1

Branch: refs/heads/trunk
Commit: b3398da1dceb46edb3def4495b0ede2848106e25
Parents: c6f95d6
Author: Anthony Shaw <anthony.p.s...@gmail.com>
Authored: Mon Nov 9 14:34:50 2015 +1100
Committer: Anthony Shaw <anthony.p.s...@gmail.com>
Committed: Mon Nov 9 14:34:50 2015 +1100

----------------------------------------------------------------------
 docs/index.rst           |  3 +++
 libcloud/backup/types.py | 16 ++++++++--------
 2 files changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b3398da1/docs/index.rst
----------------------------------------------------------------------
diff --git a/docs/index.rst b/docs/index.rst
index 2f75dd6..929151c 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -13,6 +13,8 @@ Resource you can manage with Libcloud are divided in the 
following categories:
   Rackspace CloudFiles
 * :doc:`Load Balancers as a Service </loadbalancer/index>` - services such as 
Amazon Elastic Load Balancer and GoGrid LoadBalancers
 * :doc:`DNS as a Service </dns/index>` - services such as Amazon Route 53 and 
Zerigo
+* :doc:`Backup as a Service </backup/index>` - services such as Amazon EBS and 
OpenStack Freezer
+
 
 .. figure:: /_static/images/supported_providers.png
     :align: center
@@ -36,6 +38,7 @@ Main
     storage/index
     loadbalancer/index
     dns/index
+    backup/index
     troubleshooting
     api_docs
     faq

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b3398da1/libcloud/backup/types.py
----------------------------------------------------------------------
diff --git a/libcloud/backup/types.py b/libcloud/backup/types.py
index 5830de2..0c721ca 100644
--- a/libcloud/backup/types.py
+++ b/libcloud/backup/types.py
@@ -28,21 +28,21 @@ class BackupTargetType(object):
     """
     Backup Target type.
     """
-
-    """ Denotes a virtual host """
+    
     VIRTUAL = 'Virtual'
-
-    """ Denotes a physical host """
+    """ Denotes a virtual host """
+    
     PHYSICAL = 'Physical'
-
-    """ Denotes a file system (e.g. NAS) """
+    """ Denotes a physical host """
+    
     FILESYSTEM = 'Filesystem'
+    """ Denotes a file system (e.g. NAS) """
 
-    """ Denotes a database target """
     DATABASE = 'Database'
+    """ Denotes a database target """
 
-    """ Denotes an object based file system """
     OBJECT = 'Object'
+    """ Denotes an object based file system """
 
 
 class BackupTargetJobStatusType(object):

Reply via email to