fix syntax error
This commit is contained in:
parent
c687960f15
commit
dc0ee5132a
|
@ -133,7 +133,7 @@ class TiramisuOptionProperty:
|
||||||
properties.append('frozen')
|
properties.append('frozen')
|
||||||
else:
|
else:
|
||||||
properties = []
|
properties = []
|
||||||
if self.config.get_hidden(self.path)
|
if self.config.get_hidden(self.path):
|
||||||
properties.append('hidden')
|
properties.append('hidden')
|
||||||
return properties
|
return properties
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ class TiramisuOptionValue(_Value):
|
||||||
|
|
||||||
|
|
||||||
class _Option:
|
class _Option:
|
||||||
def list(self,
|
def list(self,
|
||||||
type='option'):
|
type='option'):
|
||||||
if type not in ['all', 'option']:
|
if type not in ['all', 'option']:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
@ -539,7 +539,7 @@ class Config:
|
||||||
if len(schema_value) >= len_value:
|
if len(schema_value) >= len_value:
|
||||||
new_value = schema_value[len_value - 1]
|
new_value = schema_value[len_value - 1]
|
||||||
value[-1] = new_value
|
value[-1] = new_value
|
||||||
|
|
||||||
self.updates_value('modify',
|
self.updates_value('modify',
|
||||||
path,
|
path,
|
||||||
index,
|
index,
|
||||||
|
@ -622,10 +622,10 @@ class Config:
|
||||||
last_body = self.updates[-1]
|
last_body = self.updates[-1]
|
||||||
if last_body['name'] == path:
|
if last_body['name'] == path:
|
||||||
if index is None and not 'index' in last_body:
|
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 \
|
if last_action == action or \
|
||||||
last_action in ['delete', 'modify'] and action in ['delete', 'modify']:
|
last_action in ['delete', 'modify'] and action in ['delete', 'modify']:
|
||||||
update_last_action = True
|
update_last_action = True
|
||||||
elif index == None and action == 'delete':
|
elif index == None and action == 'delete':
|
||||||
for update in reversed(self.updates):
|
for update in reversed(self.updates):
|
||||||
if masterslaves == None and update['name'] == path or \
|
if masterslaves == None and update['name'] == path or \
|
||||||
|
|
Loading…
Reference in New Issue