From 84d9c9a77015ce3b0e2541ddb979c31f2ff56bd0 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 09 2018 10:35:23 +0000 Subject: remove dummy widget Remove the dummy widget. It pretty much is the same as the sticky note widget. --- diff --git a/hubs/default_config.py b/hubs/default_config.py index cb13489..3384c17 100644 --- a/hubs/default_config.py +++ b/hubs/default_config.py @@ -55,7 +55,6 @@ WIDGETS = [ 'hubs.widgets.badges:Badges', 'hubs.widgets.bugzilla:Bugzilla', 'hubs.widgets.contact:Contact', - 'hubs.widgets.dummy:Dummy', 'hubs.widgets.library:Library', 'hubs.widgets.linechart:Linechart', 'hubs.widgets.feed:Feed', diff --git a/hubs/widgets/dummy/__init__.py b/hubs/widgets/dummy/__init__.py deleted file mode 100644 index fa0443f..0000000 --- a/hubs/widgets/dummy/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -from __future__ import unicode_literals - -from hubs.utils import validators -from hubs.widgets.base import Widget -from hubs.widgets.view import RootWidgetView - - -class Dummy(Widget): - - name = "dummy" - position = "both" - parameters = [dict( - name="text", - label="Text", - default="Lorem ipsum dolor...", - validator=validators.Text, - help="Some dummy text to display.", - )] - - -class BaseView(RootWidgetView): - - def get_context(self, instance, *args, **kwargs): - return dict( - text=instance.config["text"], - ) diff --git a/hubs/widgets/dummy/templates/root.html b/hubs/widgets/dummy/templates/root.html deleted file mode 100644 index 8d15644..0000000 --- a/hubs/widgets/dummy/templates/root.html +++ /dev/null @@ -1 +0,0 @@ -{{text}}