Am 27-01-2014 14:34, schrieb Paulo Vital:
@@ -63,3 +66,12 @@ class Partition(Resource):
@property
def data(self):
return self.info
+
+class SoftwareUpdate(Resource):
+ def __init__(self, model):
+ super(SoftwareUpdate, self).__init__(model)
+ self.update = self.generate_action_handler('update')
+
+ @property
+ def data(self):
+ return self.info
Please use two blank lines between top-level elements
(i.e. add another
blank line before the SoftwareUpdate class declaration).