Skip to content

Commit

Permalink
Backend: added metadata information to plugin list. added icons for t…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
psilo909 committed Sep 15, 2017
1 parent d4efc8e commit 562e52d
Show file tree
Hide file tree
Showing 7 changed files with 7,375 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/BackendCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ def plugins_html(self):
# self.logger.warning("plugins_html: class_name='{0}', class_path='{1}'".format(_conf[plugin]['class_name'], _conf[plugin]['class_path']))
conf_plugins[_conf[plugin]['class_name']] = {}
conf_plugins[_conf[plugin]['class_name']] = _conf[plugin]
conf_plugins[_conf[plugin]['class_name']]['conf_plugin_name'] = plugin
# self.logger.warning("plugins_html: conf_plugins='{0}'".format(conf_plugins))

plugins = []
Expand All @@ -836,6 +837,7 @@ def plugins_html(self):
plugin['classname'] = x.__class__.__name__
plugin['classpath'] = conf_plugins[x.__class__.__name__]['class_path']
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
plugin['instancename'] = x.get_instance_name()
Expand Down
3,793 changes: 3,793 additions & 0 deletions backend/static/img/gateway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,877 changes: 1,877 additions & 0 deletions backend/static/img/interface.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions backend/static/img/protocol.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 562e52d

Please sign in to comment.