1 from unfold.plugin import Plugin
2 from unfold.page import Page
3 from plugins.code_editor import CodeEditor
4 from plugins.hazelnut import Hazelnut
6 class DebugPlatform(Plugin):
8 def template_file(self):
9 return "debug_platform.html"
11 def requirements (self):
14 'js/debug_platform.js',
17 'css/debug_platform.css',
22 def json_settings_list (self):
23 return ['plugin_uuid', 'domid']
25 def export_json_settings (self):
28 def template_env (self, request):
29 # This part should be moved to a Layout
31 env['topleft'] = CodeEditor(page=self.page, lineNumbers=True).render(request)
32 env['bottomleft'] = Hazelnut(page=self.page, columns=['dummy']).render(request)