Source code for camcops_server.cc_modules.cc_resource_registry

from deform.widget import ResourceRegistry


[docs]class CamcopsResourceRegistry(ResourceRegistry):
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.set_js_resources( "jsoneditor", None, "camcops_server.static:jsoneditor/jsoneditor.min.js" ) self.set_css_resources( "jsoneditor", None, "camcops_server.static:jsoneditor/jsoneditor.min.css", "camcops_server.static:jsoneditor/jsonwidget.css" )