#504 remove dummy widget
Merged 6 years ago by abompard. Opened 6 years ago by ryanlerch.
ryanlerch/fedora-hubs remove-dummy  into  develop

file modified
-1
@@ -55,7 +55,6 @@ 

      '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',

@@ -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"],

-             )

@@ -1,1 +0,0 @@ 

- {{text}}

Remove the dummy widget. It pretty much is the same as the
sticky note widget.

Pull-Request has been merged by abompard

6 years ago