dash.contrib.plugins.dummy package

Submodules

dash.contrib.plugins.dummy.apps module

class dash.contrib.plugins.dummy.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

label = 'dash.contrib.layouts.bootstrap3'
name = 'dash.contrib.layouts.bootstrap3'

dash.contrib.plugins.dummy.dash_plugins module

class dash.contrib.plugins.dummy.dash_plugins.BaseDummyPlugin(layout_uid, placeholder_uid, workspace=None, user=None, position=None)[source]

Bases: dash.base.BaseDashboardPlugin

Base dummy plugin.

form

alias of DummyForm

get_form()[source]
group = <django.utils.functional.__proxy__ object at 0x7f10ff3e2a10>
name = <django.utils.functional.__proxy__ object at 0x7f10ff3e29d0>
post_processor()[source]

If no text available, use dummy.

dash.contrib.plugins.dummy.dash_widgets module

class dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget(plugin)[source]

Bases: dash.base.BaseDashboardPluginWidget

Base dummy plugin widget.

media_css = []
media_js = []
render(request=None)[source]
class dash.contrib.plugins.dummy.dash_widgets.Dummy1x1Widget(plugin)[source]

Bases: dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget

1x1 dummy plugin widget.

plugin_uid = 'dummy_1x1'
class dash.contrib.plugins.dummy.dash_widgets.Dummy1x2Widget(plugin)[source]

Bases: dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget

1x2 dummy plugin widget.

cols = 1
plugin_uid = 'dummy_1x2'
rows = 2
class dash.contrib.plugins.dummy.dash_widgets.Dummy2x1Widget(plugin)[source]

Bases: dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget

2x1 dummy plugin widget.

cols = 2
plugin_uid = 'dummy_2x1'
rows = 1
class dash.contrib.plugins.dummy.dash_widgets.Dummy2x2Widget(plugin)[source]

Bases: dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget

2x2 dummy plugin widget.

cols = 2
plugin_uid = 'dummy_2x2'
rows = 2
class dash.contrib.plugins.dummy.dash_widgets.Dummy3x3Widget(plugin)[source]

Bases: dash.contrib.plugins.dummy.dash_widgets.BaseDummyWidget

3x3 dummy plugin widget.

cols = 3
plugin_uid = 'dummy_3x3'
rows = 3

dash.contrib.plugins.dummy.defaults module

dash.contrib.plugins.dummy.forms module

class dash.contrib.plugins.dummy.forms.DummyForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Bases: django.forms.forms.Form, dash.base.DashboardPluginFormBase

Dummy form (for main placeholder).

base_fields = OrderedDict([('show_title', <django.forms.fields.BooleanField object at 0x7f10ff3e2590>), ('generate_lipsum', <django.forms.fields.BooleanField object at 0x7f10ff3e26d0>), ('lipsum_language', <django.forms.fields.ChoiceField object at 0x7f10ff3e27d0>), ('lipsum_max_chars', <django.forms.fields.IntegerField object at 0x7f10ff3e2890>), ('text', <django.forms.fields.CharField object at 0x7f10ff3e2950>)])
declared_fields = OrderedDict([('show_title', <django.forms.fields.BooleanField object at 0x7f10ff3e2590>), ('generate_lipsum', <django.forms.fields.BooleanField object at 0x7f10ff3e26d0>), ('lipsum_language', <django.forms.fields.ChoiceField object at 0x7f10ff3e27d0>), ('lipsum_max_chars', <django.forms.fields.IntegerField object at 0x7f10ff3e2890>), ('text', <django.forms.fields.CharField object at 0x7f10ff3e2950>)])
media
plugin_data_fields = [('show_title', False), ('generate_lipsum', False), ('lipsum_language', ''), ('lipsum_max_chars', 40), ('text', '')]
save_plugin_data(request=None)[source]

We want to save the generated lorem ipsum text for later use. Thus, although we don’t show it to the user, in case when generate_lipsum field is set to True, we silently generate the text and save it into the plugin data.

class dash.contrib.plugins.dummy.forms.DummyShortcutsForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Bases: dash.contrib.plugins.dummy.forms.DummyForm

Dummy form for shortucts placeholder.

base_fields = OrderedDict([('show_title', <django.forms.fields.BooleanField object at 0x7f10ff3e2590>), ('generate_lipsum', <django.forms.fields.BooleanField object at 0x7f10ff3e26d0>), ('lipsum_language', <django.forms.fields.ChoiceField object at 0x7f10ff3e27d0>), ('lipsum_max_chars', <django.forms.fields.IntegerField object at 0x7f10ff3e2890>), ('text', <django.forms.fields.CharField object at 0x7f10ff3e2950>)])
declared_fields = OrderedDict([('show_title', <django.forms.fields.BooleanField object at 0x7f10ff3e2590>), ('generate_lipsum', <django.forms.fields.BooleanField object at 0x7f10ff3e26d0>), ('lipsum_language', <django.forms.fields.ChoiceField object at 0x7f10ff3e27d0>), ('lipsum_max_chars', <django.forms.fields.IntegerField object at 0x7f10ff3e2890>), ('text', <django.forms.fields.CharField object at 0x7f10ff3e2950>)])
media

Module contents