Application GISAID

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

Key files of the « GISAID » application

admin.py

class apps.gisaid.admin.GisaidTeamProfileAdmin(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.

class apps.gisaid.admin.GisaidUserProfileAdmin(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.

class apps.gisaid.admin.gisaid_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.

model.py

class apps.gisaid.models.GisaidTeamProfile(*args, **kwargs)

GISAID team profile table

exception DoesNotExist
exception MultipleObjectsReturned
class apps.gisaid.models.GisaidUserProfile(*args, **kwargs)

GISAID team profile table

exception DoesNotExist
exception MultipleObjectsReturned
class apps.gisaid.models.gisaid_submission(*args, **kwargs)

GISAID submissions table

exception DoesNotExist
exception MultipleObjectsReturned

test.py

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

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_admin_gisaid_submission()

Test admin gisaid_submission

test_detail_page()

Test get detail submission page

test_get_and_update_finess_details()

Test get_and_update_finess_details

test_gisaid_apis()

Test api GISAID

test_permission_gisaid_page()

Test get permission gisaid page

test_profile_gisaid_page()

Test get profile gisaid page

view.py

apps.gisaid.views.gisaidProfile(request, test=False)

Render profile template

apps.gisaid.views.permission_procedure_gisaid(request, team_id)

Give permission to the IFB to submit the data to GISAID

urls.py