fee_riverplume_workflow.views module

Classes:

ConfigView(**kwargs)

A for the config.json required by the application.

IndexView(**kwargs)

Base view for the application.

class fee_riverplume_workflow.views.ConfigView(**kwargs)

Bases: guardian.mixins.PermissionRequiredMixin, django.views.generic.detail.BaseDetailView

A for the config.json required by the application.

Attributes:

accept_global_perms

permission_required

Methods:

check_permissions(request)

Checks if request.user has all permissions returned by get_required_permissions method.

render_to_response(context)

Get the configuration as JSON.

Classes:

model

alias of dasf_broker.models.BrokerTopic

accept_global_perms = True
check_permissions(request)

Checks if request.user has all permissions returned by get_required_permissions method.

Parameters

request – Original request.

model

alias of dasf_broker.models.BrokerTopic Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Classes:

StoreMessageChoices(value)

Choices for storing messages.

Attributes:

availability

Get the online/offline status for the topic.

brokermessage_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

consumers

date_created

A wrapper for a deferred-loading field.

effective_store_messages

Get the store message rule for this topic.

garbage_collect_on

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

is_public

A wrapper for a deferred-loading field.

is_response_topic

Is this topic a responsetopic?

last_ping

A wrapper for a deferred-loading field.

last_pong

A wrapper for a deferred-loading field.

objects

producers

responsetopic

Accessor to the related object on the reverse side of a one-to-one relation.

responsetopics

Accessor to the related objects manager on the reverse side of a many-to-one relation.

slug

A wrapper for a deferred-loading field.

status_viewers

store_messages

A wrapper for a deferred-loading field.

supports_dasf

A wrapper for a deferred-loading field.

Methods:

build_websocket_url(request[, route])

create_and_send_message(user, content)

Create and send a message for the user

get_next_by_date_created(*[, field, is_next])

get_outstanding_messages([user])

Get the messages that still need to be send.

get_previous_by_date_created(*[, field, is_next])

get_store_messages_display(*[, field])

get_websocket_url(request)

Get the websocket url for this topic.

ping()

Create a ping message and send it to the consumer.

permission_required = 'dasf_broker.can_produce'
render_to_response(context)

Get the configuration as JSON.

class fee_riverplume_workflow.views.IndexView(**kwargs)

Bases: guardian.mixins.PermissionRequiredMixin, django.views.generic.detail.DetailView

Base view for the application.

Attributes:

accept_global_perms

permission_required

template_name

Methods:

check_permissions(request)

Checks if request.user has all permissions returned by get_required_permissions method.

Classes:

model

alias of dasf_broker.models.BrokerTopic

accept_global_perms = True
check_permissions(request)

Checks if request.user has all permissions returned by get_required_permissions method.

Parameters

request – Original request.

model

alias of dasf_broker.models.BrokerTopic Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Classes:

StoreMessageChoices(value)

Choices for storing messages.

Attributes:

availability

Get the online/offline status for the topic.

brokermessage_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

consumers

date_created

A wrapper for a deferred-loading field.

effective_store_messages

Get the store message rule for this topic.

garbage_collect_on

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

is_public

A wrapper for a deferred-loading field.

is_response_topic

Is this topic a responsetopic?

last_ping

A wrapper for a deferred-loading field.

last_pong

A wrapper for a deferred-loading field.

objects

producers

responsetopic

Accessor to the related object on the reverse side of a one-to-one relation.

responsetopics

Accessor to the related objects manager on the reverse side of a many-to-one relation.

slug

A wrapper for a deferred-loading field.

status_viewers

store_messages

A wrapper for a deferred-loading field.

supports_dasf

A wrapper for a deferred-loading field.

Methods:

build_websocket_url(request[, route])

create_and_send_message(user, content)

Create and send a message for the user

get_next_by_date_created(*[, field, is_next])

get_outstanding_messages([user])

Get the messages that still need to be send.

get_previous_by_date_created(*[, field, is_next])

get_store_messages_display(*[, field])

get_websocket_url(request)

Get the websocket url for this topic.

ping()

Create a ping message and send it to the consumer.

permission_required = 'dasf_broker.can_produce'
template_name = 'fee_riverplume_workflow/index.html'