libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1351944 - in /libcloud/trunk/libcloud/dns: base.py drivers/dummy.py drivers/rackspace.py
Date Wed, 20 Jun 2012 06:48:06 GMT
Author: tomaz
Date: Wed Jun 20 06:48:05 2012
New Revision: 1351944

URL: http://svn.apache.org/viewvc?rev=1351944&view=rev
Log:
Add @required annotation to DNS driver constructor docstrings. Contributed by
Ilgiz Islamgulov, part of LIBCLOUD-216.

Modified:
    libcloud/trunk/libcloud/dns/base.py
    libcloud/trunk/libcloud/dns/drivers/dummy.py
    libcloud/trunk/libcloud/dns/drivers/rackspace.py

Modified: libcloud/trunk/libcloud/dns/base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/base.py?rev=1351944&r1=1351943&r2=1351944&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/base.py (original)
+++ libcloud/trunk/libcloud/dns/base.py Wed Jun 20 06:48:05 2012
@@ -133,6 +133,9 @@ class DNSDriver(BaseDriver):
     name = None
 
     def __init__(self, key, secret=None, secure=True, host=None, port=None, **kwargs):
+        """
+        @requires: key, secret
+        """
         super(DNSDriver, self).__init__(key=key, secret=secret, secure=secure,
                                         host=host, port=port, **kwargs)
 

Modified: libcloud/trunk/libcloud/dns/drivers/dummy.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/dummy.py?rev=1351944&r1=1351943&r2=1351944&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/dummy.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/dummy.py Wed Jun 20 06:48:05 2012
@@ -33,6 +33,9 @@ class DummyDNSDriver(DNSDriver):
     name = 'Dummy DNS Provider'
 
     def __init__(self, api_key, api_secret):
+        """
+        @requires: api_key, api_secret
+        """
         self._zones = {}
 
     def list_record_types(self):

Modified: libcloud/trunk/libcloud/dns/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/rackspace.py?rev=1351944&r1=1351943&r2=1351944&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/rackspace.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/rackspace.py Wed Jun 20 06:48:05 2012
@@ -130,6 +130,9 @@ class RackspaceUKDNSConnection(Rackspace
 class RackspaceDNSDriver(DNSDriver, OpenStackDriverMixin):
 
     def __init__(self, *args, **kwargs):
+        """
+        @requires: key, secret
+        """
         OpenStackDriverMixin.__init__(self, *args, **kwargs)
         super(RackspaceDNSDriver, self).__init__(*args, **kwargs)
 



Mime
View raw message