Source

cloudster / api / storages / adapters / dropbox / adapter.py

Diff from to

api/storages/adapters/dropbox/adapter.py

 
 	def __init__(self, account_data):
 
-		skeleton.StorageAccountData.__init__(self)
+		parsed_data = skeleton.StorageAccountData.parse(self, account_data)
 
-		parsed_data = skeleton.StorageAccountData.parse(self, account_data)
+		skeleton.StorageAccountData.__init__(self, parsed_data)
 
 		self._appKey = parsed_data["appKey"]
 		self._appSecret = parsed_data["appSecret"]
 		return self._oauth_token_secret is not None and self._oauth_token is not None
 
 	def jsonize(self):
-		return dict({'appKey': self._appKey, 'appSecret': self._appSecret, 'accessType': self._accessType, 'OAuthToken' : self._oauth_token, 'OAuthTokenSecret': self._oauth_token_secret})
+		return dict({'appKey': self._appKey, 'appSecret': self._appSecret, 'accessType': self._accessType, 'OAuthToken' : self._oauth_token, 'OAuthTokenSecret': self._oauth_token_secret, 'unique_id': self.unique_id()})