Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 55d6797c authored by usov_i's avatar usov_i
Browse files

Temporary show current config for debugging

parent cf3abd97
No related branches found
No related tags found
No related merge requests found
import re import re
import tempfile import tempfile
from bokeh.io import curdoc
from bokeh.layouts import column, row from bokeh.layouts import column, row
from bokeh.models import Button, Panel, RadioButtonGroup, Select, TextAreaInput, TextInput from bokeh.models import Button, Panel, RadioButtonGroup, Select, TextAreaInput, TextInput
...@@ -329,6 +330,7 @@ def create(): ...@@ -329,6 +330,7 @@ def create():
process_button.on_click(process_button_callback) process_button.on_click(process_button_callback)
output_log = TextAreaInput(title="Logfile output:", height=700, disabled=True) output_log = TextAreaInput(title="Logfile output:", height=700, disabled=True)
output_config = TextAreaInput(title="Current config:", height=700, width=400)
tab_layout = row( tab_layout = row(
column( column(
...@@ -367,7 +369,15 @@ def create(): ...@@ -367,7 +369,15 @@ def create():
), ),
), ),
), ),
output_config,
output_log, output_log,
) )
async def update_config():
config.save_as("debug.xml")
with open("debug.xml") as f_config:
output_config.value = f_config.read()
curdoc().add_periodic_callback(update_config, 1000)
return Panel(child=tab_layout, title="Anatric") return Panel(child=tab_layout, title="Anatric")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment