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.

applications.models module

class applications.models.Application(*args, **kwargs)[source]

Bases: provenance.models.ProvAbleModel, provenance.models.ProvApplicationModel, core.models.BaseAppDataModel

Manage the state of and access to an external application.

An external application may be e.g.:

  • A data / metadata visualisation tool
  • A data / metadata analysis pipeline
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

access_control

Do users require explicit permission to use this application?

delete(using=None, keep_parents=False)[source]

Soft delete this object.

get_absolute_url()[source]

Return the URL at which PEDASI is hosted.

has_view_permission(user: profiles.User) → bool[source]

Does a user have permission to use this application?

Parameters:user – User to check
Returns:User has permission?
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

is_deleted

Has this object been soft deleted?

objects = <core.models.SoftDeletionManager object>
owner

User who has responsibility for this application

owner_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

proxy_user

Proxy user which this application will act as

proxy_user_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

save(**kwargs)[source]

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

url

Address at which the API may be accessed

users_group

Group of users who have read / use access to this data source / application

users_group_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

users_group_requested

Groups of users who have requested access to this data source / application

users_group_requested_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.