Note

This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.

datasources.views.datasource module

class datasources.views.datasource.DataSourceCreateView(**kwargs)[source]

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.CreateView

context_object_name = 'datasource'
form_class

alias of datasources.forms.DataSourceForm

form_valid(form)[source]

If the form is valid, save the associated model.

model

alias of datasources.models.datasource.DataSource

permission_required = 'datasources.add_datasource'
template_name = 'datasources/datasource/create.html'
class datasources.views.datasource.DataSourceDataSetSearchView(**kwargs)[source]

Bases: datasources.permissions.HasPermissionLevelMixin, django.views.generic.detail.DetailView

context_object_name = 'datasource'
get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

model

alias of datasources.models.datasource.DataSource

permission_level = 2
template_name = 'datasources/datasource/dataset_search.html'
class datasources.views.datasource.DataSourceDeleteView(**kwargs)[source]

Bases: profiles.permissions.OwnerPermissionMixin, django.views.generic.edit.DeleteView

context_object_name = 'datasource'
model

alias of datasources.models.datasource.DataSource

permission_required = 'datasources.delete_datasource'
success_url = '/datasources/'
template_name = 'datasources/datasource/delete.html'
class datasources.views.datasource.DataSourceDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

context_object_name = 'datasource'
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

get_template_names()[source]

Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list:

  • the value of template_name on the view (if provided)
  • the contents of the template_name_field field on the object instance that the view is operating upon (if available)
  • <app_label>/<model_name><template_name_suffix>.html
model

alias of datasources.models.datasource.DataSource

template_name = 'datasources/datasource/detail.html'
class datasources.views.datasource.DataSourceExplorerView(**kwargs)[source]

Bases: datasources.permissions.HasPermissionLevelMixin, django.views.generic.detail.DetailView

context_object_name = 'datasource'
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

model

alias of datasources.models.datasource.DataSource

permission_level = 2
template_name = 'datasources/datasource/explorer.html'
class datasources.views.datasource.DataSourceListView(**kwargs)[source]

Bases: django.views.generic.list.ListView

context_object_name = 'datasources'
model

alias of datasources.models.datasource.DataSource

template_name = 'datasources/datasource/list.html'
class datasources.views.datasource.DataSourceMetadataView(**kwargs)[source]

Bases: profiles.permissions.OwnerPermissionMixin, django.views.generic.detail.DetailView

context_object_name = 'datasource'
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

model

alias of datasources.models.datasource.DataSource

template_name = 'datasources/datasource/metadata.html'
class datasources.views.datasource.DataSourceUpdateView(**kwargs)[source]

Bases: profiles.permissions.OwnerPermissionMixin, django.views.generic.edit.UpdateView

context_object_name = 'datasource'
form_class

alias of datasources.forms.DataSourceForm

model

alias of datasources.models.datasource.DataSource

permission_required = 'datasources.change_datasource'
template_name = 'datasources/datasource/update.html'
class datasources.views.datasource.FieldValueSet(field, list)

Bases: tuple

field

Alias for field number 0

list

Alias for field number 1