Application ENA

The ENA application contains the pages to submit in ENA database.

Key files of the « ENA » application

admin.py

class apps.ena.admin.ena_submissionAdmin(model, admin_site)
has_add_permission(request)

Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.

has_delete_permission(request, obj=None)

Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.

Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.

model.py

class apps.ena.models.ENATeamProfile(*args, **kwargs)

ENA team profile table

exception DoesNotExist
exception MultipleObjectsReturned
class apps.ena.models.ENAUserProfile(*args, **kwargs)

GISAID team profile table

exception DoesNotExist
exception MultipleObjectsReturned
class apps.ena.models.ena_submission(*args, **kwargs)

ENA submissions table

exception DoesNotExist
exception MultipleObjectsReturned

test.py

class apps.ena.tests.TestPage(methodName='runTest')
setUp()

Hook method for setting up the test fixture before exercising it.

test_admin_ena_submission()

Test admin ena_submission

test_profile_ena_page()

Test get profile ena page

view.py

apps.ena.views.enaProfile(request, test=False)

Render profile template

urls.py