dash.contrib.plugins.rss_feed package

Submodules

dash.contrib.plugins.rss_feed.apps module

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

Bases: django.apps.config.AppConfig

label = 'dash_contrib_plugins_rss_feed'
name = 'dash.contrib.plugins.rss_feed'

dash.contrib.plugins.rss_feed.dash_plugins module

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

Bases: dash.base.BaseDashboardPlugin

Base Read RSS feed into HTML plugin.

form

alias of dash.contrib.plugins.rss_feed.forms.ReadRSSFeedForm

group
name

dash.contrib.plugins.rss_feed.dash_widgets module

class dash.contrib.plugins.rss_feed.dash_widgets.BaseReadRSSFeedWidget(plugin)[source]

Bases: dash.base.BaseDashboardPluginWidget

Base read RSS feed plugin widget.

media_css = ['css/dash_plugin_read_rss_feed.css']
media_js = ['js/dash_plugin_read_rss_feed.js']
render(request=None)[source]

Render.

class dash.contrib.plugins.rss_feed.dash_widgets.ReadRSSFeed2x3Widget(plugin)[source]

Bases: dash.contrib.plugins.rss_feed.dash_widgets.BaseReadRSSFeedWidget

Read RSS feed 2x3 plugin widget.

cols = 2
plugin_uid = 'read_rss_feed_2x3'
rows = 3
class dash.contrib.plugins.rss_feed.dash_widgets.ReadRSSFeed3x3Widget(plugin)[source]

Bases: dash.contrib.plugins.rss_feed.dash_widgets.BaseReadRSSFeedWidget

Big read RSS 3x3 feed plugin widget.

cols = 3
plugin_uid = 'read_rss_feed_3x3'
rows = 3

dash.contrib.plugins.rss_feed.defaults module

dash.contrib.plugins.rss_feed.forms module

class dash.contrib.plugins.rss_feed.forms.ReadRSSFeedForm(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, field_order=None, use_required_attribute=None, renderer=None)[source]

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

Form for main ReadRSSFeedPlugin.

base_fields = {'cache_for': <django.forms.fields.IntegerField object at 0x7f32c24ea110>, 'custom_feed_title': <django.forms.fields.CharField object at 0x7f32c24eaa90>, 'feed_url': <django.forms.fields.URLField object at 0x7f32c24ea990>, 'max_items': <django.forms.fields.IntegerField object at 0x7f32c24ea490>, 'show_feed_title': <django.forms.fields.BooleanField object at 0x7f32c24ea690>, 'truncate_after': <django.forms.fields.IntegerField object at 0x7f32c24ead90>}
declared_fields = {'cache_for': <django.forms.fields.IntegerField object at 0x7f32c24ea110>, 'custom_feed_title': <django.forms.fields.CharField object at 0x7f32c24eaa90>, 'feed_url': <django.forms.fields.URLField object at 0x7f32c24ea990>, 'max_items': <django.forms.fields.IntegerField object at 0x7f32c24ea490>, 'show_feed_title': <django.forms.fields.BooleanField object at 0x7f32c24ea690>, 'truncate_after': <django.forms.fields.IntegerField object at 0x7f32c24ead90>}
media
plugin_data_fields = [('feed_url', ''), ('custom_feed_title', ''), ('show_feed_title', True), ('max_items', 6), ('truncate_after', 35), ('cache_for', 3600)]

dash.contrib.plugins.rss_feed.helpers module

dash.contrib.plugins.rss_feed.helpers.max_num_template(max_items, default)[source]

Nax num of items in a template.

dash.contrib.plugins.rss_feed.urls module

dash.contrib.plugins.rss_feed.views module

dash.contrib.plugins.rss_feed.views.get_feed(*args, **kwargs)[source]

Get feed.

Parameters:
  • request (django.http.HttpRequest) –
  • layout_uid (str) –
  • placeholder_uid (str) –
  • plugin_uid (str) –
  • template_name (str) –
  • template_name_ajax (str) –
Return django.http.HttpResponse:
 

Module contents