[Kimchi-devel] [PATCH 2/4] Host's software update: Update REST API

Crístian Viana vianac at linux.vnet.ibm.com
Wed Jan 29 16:45:54 UTC 2014


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).




More information about the Kimchi-devel mailing list