diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 0da6843..595846a 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -133,7 +133,7 @@ class TiramisuOptionProperty: properties.append('frozen') else: properties = [] - if self.config.get_hidden(self.path) + if self.config.get_hidden(self.path): properties.append('hidden') return properties @@ -271,7 +271,7 @@ class TiramisuOptionValue(_Value): class _Option: - def list(self, + def list(self, type='option'): if type not in ['all', 'option']: raise NotImplementedError() @@ -539,7 +539,7 @@ class Config: if len(schema_value) >= len_value: new_value = schema_value[len_value - 1] value[-1] = new_value - + self.updates_value('modify', path, index, @@ -622,10 +622,10 @@ class Config: last_body = self.updates[-1] if last_body['name'] == path: if index is None and not 'index' in last_body: - last_action = last_body['action'] + last_action = last_body['action'] if last_action == action or \ last_action in ['delete', 'modify'] and action in ['delete', 'modify']: - update_last_action = True + update_last_action = True elif index == None and action == 'delete': for update in reversed(self.updates): if masterslaves == None and update['name'] == path or \