mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 07:21:32 +00:00
Improve IdeHandler JSON API
This commit is contained in:
parent
701b918e6f
commit
fab582505f
@ -73,8 +73,8 @@ class IdeHandler:
|
||||
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||
|
||||
def read(self, message):
|
||||
if message.get('files'):
|
||||
self.filemanager.patterns = message['files']
|
||||
if 'patterns' in message:
|
||||
self.filemanager.patterns = message['patterns']
|
||||
try:
|
||||
message['filename'] = message.get('filename') or self.initial_file
|
||||
message['content'] = self.filemanager.read_file(message['filename'])
|
||||
|
Loading…
Reference in New Issue
Block a user