Skip to content

Commit

Permalink
Backend: now using parameters out of yaml file.. if none are there, u…
Browse files Browse the repository at this point in the history
…sing standard plugin configuration
  • Loading branch information
psilo909 committed Sep 15, 2017
1 parent b83290c commit 13b3357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/BackendCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,10 @@ def plugins_html(self):
plugin = dict()
plugin['classname'] = x.__class__.__name__
plugin['classpath'] = conf_plugins[x.__class__.__name__]['class_path']
plugin['attributes'] = conf_plugins[x.__class__.__name__]
if bool(x._parameters):
plugin['attributes'] = x._parameters
else:
plugin['attributes'] = conf_plugins[x.__class__.__name__]
plugin['metadata'] = getattr(self._sh , conf_plugins[x.__class__.__name__]['conf_plugin_name'])._metadata
if isinstance(x, SmartPlugin):
plugin['smartplugin'] = True
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
{% if loop.index % 2 > 0 %}
<tr>
{% endif %}
<td style="width: 300px;"><strong>{{ key }}:</strong> {{ value }}</td>
<td style="width: 400px;"><strong>{{ key }}:</strong> {{ value }}</td>
{% if loop.index % 2 > 0 and not first %}
</tr>
{% else %}
Expand Down

0 comments on commit 13b3357

Please sign in to comment.