Created
July 29, 2009 20:18
-
-
Save tdavis/158373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BaseDriver(object): | |
implements(INodeDriver) | |
... | |
def create_node(self, image_id, data, ...): | |
params = self.__transform_params(**{image_id, data, ...}) | |
... | |
self.request(action, params, headers=self.__headers(), data=self.__encode_data(data)) | |
def __transform_params(self, **params): | |
""" Override this in provider-specific NodeDriver """ | |
return params |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment