Commit efea4f53 by Alexander Kryklia

bugfix

parent d4b8a7bb
...@@ -55,14 +55,15 @@ class GraphicalSliderToolModule(XModule): ...@@ -55,14 +55,15 @@ class GraphicalSliderToolModule(XModule):
def get_html(self): def get_html(self):
""" Renders parameters to template. """ """ Renders parameters to template. """
# these both will be used in class methods # these 3 will be used in class methods
self.html_id = self.location.html_id() self.html_id = self.location.html_id()
self.html_class = self.location.category self.html_class = self.location.category
self.configuration_json = self.build_configuration_json()
params = { params = {
'gst_html': self.substitute_controls(self.definition['render']), 'gst_html': self.substitute_controls(self.definition['render']),
'element_id': self.html_id, 'element_id': self.html_id,
'element_class': self.html_class, 'element_class': self.html_class,
'configuration_json': self.build_configuration_json() 'configuration_json': self.configuration_json
} }
self.content = (self.system.render_template( self.content = (self.system.render_template(
'graphical_slider_tool.html', params)) 'graphical_slider_tool.html', params))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment