libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r905493 - /incubator/libcloud/trunk/libcloud/drivers/rackspace.py
Date Tue, 02 Feb 2010 01:45:38 GMT
Author: pquerna
Date: Tue Feb  2 01:45:37 2010
New Revision: 905493

URL: http://svn.apache.org/viewvc?rev=905493&view=rev
Log:
be explicit about initialized instance variables

Modified:
    incubator/libcloud/trunk/libcloud/drivers/rackspace.py

Modified: incubator/libcloud/trunk/libcloud/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/rackspace.py?rev=905493&r1=905492&r2=905493&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rackspace.py Tue Feb  2 01:45:37 2010
@@ -59,12 +59,14 @@
 class RackspaceConnection(ConnectionUserAndKey):
     api_version = 'v1.0'
     auth_host = 'auth.api.rackspacecloud.com'
-    __host = None
-    path = None
-    token = None
-
     responseCls = RackspaceResponse
 
+    def __init__(self, user_id, key, secure=True):
+        self.__host = None
+        self.path = None
+        self.token = None
+        super(RackspaceConnection, self).__init__(user_id, key, secure)
+
     def add_default_headers(self, headers):
         headers['X-Auth-Token'] = self.token;
         headers['Accept'] = 'application/xml'



Mime
View raw message