diff --git a/vertica_highcharts/highcharts/common.py b/vertica_highcharts/highcharts/common.py index ab929fe..b4d7616 100644 --- a/vertica_highcharts/highcharts/common.py +++ b/vertica_highcharts/highcharts/common.py @@ -271,7 +271,7 @@ def update(self, kwargs): else: self.__options__()[k].__options__().update(v) else: - self.__options__().update({k:allowed_args[k][0](**v)}) + self.__options__().update({k:self.ALLOWED_OPTIONS[k][0](**v)}) elif isinstance(self.ALLOWED_OPTIONS[k], tuple) and isinstance(self.ALLOWED_OPTIONS[k][0](), ArrayObject): # update array @@ -289,7 +289,7 @@ def update(self, kwargs): for key, value in v.items(): self.__dict__[k].__options__().update({key:value}) else: - self.__dict__.update({k:allowed_args[k][0](**v)}) + self.__dict__.update({k:self.ALLOWED_OPTIONS[k][0](**v)}) v = self.__dict__[k].__options__() # upating object diff --git a/vertica_highcharts/highmaps/common.py b/vertica_highcharts/highmaps/common.py index b03309d..f9ab093 100644 --- a/vertica_highcharts/highmaps/common.py +++ b/vertica_highcharts/highmaps/common.py @@ -286,7 +286,7 @@ def update(self, kwargs): else: self.__options__()[k].__options__().update(v) else: - self.__options__().update({k:allowed_args[k][0](**v)}) + self.__options__().update({k:self.ALLOWED_OPTIONS[k][0](**v)}) elif isinstance(self.ALLOWED_OPTIONS[k], tuple) and isinstance(self.ALLOWED_OPTIONS[k][0](), ArrayObject): # update array @@ -304,7 +304,7 @@ def update(self, kwargs): for key, value in v.items(): self.__dict__[k].__options__().update({key:value}) else: - self.__dict__.update({k:allowed_args[k][0](**v)}) + self.__dict__.update({k:self.ALLOWED_OPTIONS[k][0](**v)}) v = self.__dict__[k].__options__() # upating object diff --git a/vertica_highcharts/highstock/common.py b/vertica_highcharts/highstock/common.py index ea43dc7..20e455d 100644 --- a/vertica_highcharts/highstock/common.py +++ b/vertica_highcharts/highstock/common.py @@ -270,7 +270,7 @@ def update(self, kwargs): else: self.__options__()[k].__options__().update(v) else: - self.__options__().update({k:allowed_args[k][0](**v)}) + self.__options__().update({k:self.ALLOWED_OPTIONS[k][0](**v)}) elif isinstance(self.ALLOWED_OPTIONS[k], tuple) and isinstance(self.ALLOWED_OPTIONS[k][0](), ArrayObject): # update array @@ -288,7 +288,7 @@ def update(self, kwargs): for key, value in v.items(): self.__dict__[k].__options__().update({key:value}) else: - self.__dict__.update({k:allowed_args[k][0](**v)}) + self.__dict__.update({k:self.ALLOWED_OPTIONS[k][0](**v)}) v = self.__dict__[k].__options__() # upating object