beat.web.reports.api module

class beat.web.reports.api.UserReportListView(**kwargs)[source]

Bases: rest_framework.generics.ListCreateAPIView

model

alias of beat.web.reports.models.Report

serializer_class

alias of beat.web.reports.serializers.SimpleReportSerializer

writing_serializer_class

alias of beat.web.reports.serializers.ReportCreationSerializer

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

get_permissions()[source]

Instantiates and returns the list of permissions that this view requires.

get_serializer(*args, **kwargs)[source]

Return the serializer instance that should be used for validating and deserializing input, and for serializing output.

post(request, owner_name)[source]
class beat.web.reports.api.ReportDetailView(**kwargs)[source]

Bases: rest_framework.generics.RetrieveUpdateDestroyAPIView

model

alias of beat.web.reports.models.Report

serializer_class

alias of beat.web.reports.serializers.FullReportSerializer

writing_serializer_class

alias of beat.web.reports.serializers.ReportUpdateSerializer

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

get_permissions()[source]

Instantiates and returns the list of permissions that this view requires.

get_serializer(*args, **kwargs)[source]

Return the serializer instance that should be used for validating and deserializing input, and for serializing output.

get(request, owner_name=None, report_name=None, number=None)[source]
delete(request, owner_name, report_name)[source]
update(request, owner_name, report_name)[source]
class beat.web.reports.api.ReportListView(**kwargs)[source]

Bases: rest_framework.generics.ListAPIView

model

alias of beat.web.reports.models.Report

serializer_class

alias of beat.web.reports.serializers.SimpleReportSerializer

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

class beat.web.reports.api.BaseReportActionView(**kwargs)[source]

Bases: rest_framework.views.APIView

model

alias of beat.web.reports.models.Report

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>]
get_queryset()[source]
class beat.web.reports.api.LockReportView(**kwargs)[source]

Bases: beat.web.reports.api.BaseReportActionView

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>, <class 'beat.web.reports.permissions.IsEditable'>]
post(request, owner_name, report_name)[source]
class beat.web.reports.api.PublishReportView(**kwargs)[source]

Bases: beat.web.reports.api.BaseReportActionView

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>, <class 'beat.web.reports.permissions.IsLocked'>]
post(request, owner_name, report_name)[source]
class beat.web.reports.api.ReportAddExperimentsView(**kwargs)[source]

Bases: beat.web.reports.api.BaseReportActionView

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>, <class 'beat.web.reports.permissions.IsEditable'>]
post(request, owner_name, report_name)[source]
class beat.web.reports.api.ReportRemoveExperimentsView(**kwargs)[source]

Bases: beat.web.reports.api.BaseReportActionView

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>, <class 'beat.web.reports.permissions.IsEditable'>]
post(request, owner_name, report_name)[source]
class beat.web.reports.api.ReportAlgorithmsView(**kwargs)[source]

Bases: rest_framework.views.APIView

model

alias of beat.web.reports.models.Report

permission_classes = [<class 'beat.web.reports.permissions.IsAuthor'>, <class 'rest_framework.permissions.IsAuthenticated'>]
get_queryset()[source]
get(request, owner_name=None, report_name=None, number=None)[source]
class beat.web.reports.api.ReportResultsView(**kwargs)[source]

Bases: beat.web.common.mixins.CommonContextMixin, rest_framework.generics.RetrieveAPIView

model

alias of beat.web.reports.models.Report

serializer_class

alias of beat.web.experiments.serializers.ExperimentResultsSerializer

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

get(request, owner_name=None, report_name=None, number=None)[source]
class beat.web.reports.api.ReportResultsAllExperimentsView(**kwargs)[source]

Bases: beat.web.common.mixins.CommonContextMixin, rest_framework.generics.RetrieveAPIView

model

alias of beat.web.reports.models.Report

serializer_class

alias of beat.web.experiments.serializers.ExperimentResultsSerializer

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>]
get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

get(request, owner_name=None, report_name=None, number=None)[source]
class beat.web.reports.api.ReportRSTCompileView(**kwargs)[source]

Bases: beat.web.reports.api.BaseReportActionView

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'beat.web.reports.permissions.IsAuthor'>, <class 'beat.web.reports.permissions.IsEditable'>]
post(request, owner_name, report_name)[source]
class beat.web.reports.api.ReportRSTCompileAnonView(**kwargs)[source]

Bases: rest_framework.views.APIView

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
get_queryset()[source]
post(request, number)[source]