From 57cfd16c4e0c276167c6c17fa6f11d6b8f69a0f6 Mon Sep 17 00:00:00 2001 From: wantellets Date: Mon, 2 Sep 2013 12:08:27 +0200 Subject: [PATCH] Update prestapyt.py Add id_shop to the supported parameters, this is used in the multishop configurations. --- prestapyt/prestapyt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prestapyt/prestapyt.py b/prestapyt/prestapyt.py index 96732d8..a481b12 100644 --- a/prestapyt/prestapyt.py +++ b/prestapyt/prestapyt.py @@ -249,7 +249,7 @@ def _validate(self, options): """ if not isinstance(options, dict): raise PrestaShopWebServiceError('Parameters must be a instance of dict') - supported = ('filter', 'display', 'sort', 'limit', 'schema', 'date', 'date_filter') + supported = ('filter', 'display', 'sort', 'limit', 'schema', 'date', 'date_filter', 'id_shop') # filter[firstname] (as e.g.) is allowed, so check only the part before a [ unsupported = set([param.split('[')[0] for param in options]).difference(supported) if unsupported: