Application Data brokering¶
The data_brokering application contains the pages of Data brokering.
Key files of the « data_brokering » application¶
admin.py¶
- class apps.data_brokering.admin.checklistAdmin(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.data_brokering.admin.databaseAdmin(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.data_brokering.admin.fieldAdmin(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.data_brokering.models.checklist(id, original_id, name, version, description, instruction, url, rawfile, database)¶
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
- class apps.data_brokering.models.database(id, name, url, description)¶
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
- class apps.data_brokering.models.field(id, name, description, format, restriction, requirement, unit, group, example, checklist)¶
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
test.py¶
- class apps.data_brokering.tests.dataBrokeringTestCase(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_checklist()¶
Test admin checklist
- test_admin_database()¶
Test admin database
- test_admin_field()¶
Test admin field
- test_data_broker_only()¶
Test data_broker_only
- test_help_page()¶
Test get help page
view.py¶
- apps.data_brokering.views.database_help(request, db_name)¶
Render database help template
- apps.data_brokering.views.metadata_detail(request, sub_id, db_name, status=None)¶
Render metadata_detail template
- apps.data_brokering.views.metadata_finish_detail(request, sub_id, db_name)¶
Render metadata finish details
- apps.data_brokering.views.submission_dashboard(request, db_name)¶
Render database help template
- apps.data_brokering.views.submission_list(request, db_name, data_broker=None)¶
Render submission List