fix syntax error

This commit is contained in:
gwen 2019-02-07 16:23:41 +01:00
parent c687960f15
commit dc0ee5132a
1 changed files with 5 additions and 5 deletions

View File

@ -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 \