mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 13:41:31 +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)
|
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||||
|
|
||||||
def read(self, message):
|
def read(self, message):
|
||||||
if message.get('files'):
|
if 'patterns' in message:
|
||||||
self.filemanager.patterns = message['files']
|
self.filemanager.patterns = message['patterns']
|
||||||
try:
|
try:
|
||||||
message['filename'] = message.get('filename') or self.initial_file
|
message['filename'] = message.get('filename') or self.initial_file
|
||||||
message['content'] = self.filemanager.read_file(message['filename'])
|
message['content'] = self.filemanager.read_file(message['filename'])
|
||||||
|
Loading…
Reference in New Issue
Block a user