Core Module

Backend source code:

Backend module

Links

Source code: https://github.com/openimis/openimis-be-core_py

Latest release: https://github.com/openimis/openimis-be-core_py/releases/latest

Pypi library: openimis-be-core

Configuration options

Option

Values

Default

Option

Values

Default

  • auto_provisioning_user_group

  • assigned user group when REMOTE_USER user is auto-provisioned

user

  • calendar_package

  • the package from which to mount the calendar

core

  • calendar_module

  • the module mounted as calendar

  • pre-canned alternative: ".calendars.ne_calendar"

  • .calendars.ad_calendar

  • datetime_package

  • the package from which to mount the datetime

core

  • datetime_module

  • the module mounted as datetime

  • pre-canned alternative: ".datetimes.ne_datetime"

  • .datetimes.ad_datetime

  • shortstrfdate

  • short format date when printing to screen, in logs, etc.

  • %d/%m/%Y

  • longstrfdate

  • short format date when printing to screen, in logs, etc.

  • %a %d %B %Y

  • iso_raw_date

  • wherever iso date format is (true=)in 'local' calendar or (false=)gregorian calendar

  • "False", to keep valid iso dates for 30/02/2076 and the like

  • age_of_majority

 

18

  • async_mutations

  • wherever mutations are (true=) processed via message queuing or (false=) in interactive server process

False

  • currency

  • Country currency

$

  • gql_query_roles_perms

  • required rights to call role, roleRight and modulesPermissions GraphQL Queries

  • ["152101"]

  • gql_mutation_create_roles_perms

  • required rights to call createRole GraphQL Mutation

  • ["122002"]

  • gql_mutation_update_roles_perms

  • required rights to call updateRole GraphQL Mutation

  • ["122003"]

  • gql_mutation_delete_roles_perms

  • required rights to call deleteRole GraphQL Mutation

  • ["152104"]

  • gql_mutation_duplicate_roles_perms

  • required rights to call duplicateRole GraphQL Mutation

  • ["152105"]

Default configuration:

{ "username_code_length": "8", # cannot be bigger than 50 unless modified length limit "user_username_and_code_length_limit": "50", "auto_provisioning_user_group": "user", "calendar_package": "core", "calendar_module": ".calendars.ad_calendar", "datetime_package": "core", "datetime_module": ".datetimes.ad_datetime", "shortstrfdate": "%d/%m/%Y", "longstrfdate": "%a %d %B %Y", "iso_raw_date": "False", "age_of_majority": "18", "async_mutations": "False", "password_reset_template": "password_reset.txt", "currency": "$", "gql_query_users_perms": ["121701"], "gql_mutation_create_users_perms": ["121702"], "gql_mutation_update_users_perms": ["121703"], "gql_mutation_delete_users_perms": ["121704"], "gql_query_roles_perms": ["122001"], "gql_mutation_create_roles_perms": ["122002"], "gql_mutation_update_roles_perms": ["122003"], "gql_mutation_replace_roles_perms": ["122006"], "gql_mutation_duplicate_roles_perms": ["122005"], "gql_mutation_delete_roles_perms": ["122004"], # TODO consider moving that roles related to ClaimAdmin and EnrolmentOfficer # into modules related to that type of user for example # EnrolmentOfficer -> policy module, ClaimAdmin -> claim module etc "gql_query_enrolment_officers_perms": ["121501"], "gql_mutation_create_enrolment_officers_perms": ["121502"], "gql_mutation_update_enrolment_officers_perms": ["121503"], "gql_mutation_delete_enrolment_officers_perms": ["121504"], "gql_query_claim_administrator_perms": ["121601"], "gql_mutation_create_claim_administrator_perms": ["121602"], "gql_mutation_update_claim_administrator_perms": ["121603"], "gql_mutation_delete_claim_administrator_perms": ["121604"], "fields_controls_user": {}, "fields_controls_eo": {}, }

Did you encounter a problem or do you have a suggestion?

Please contact our Service Desk



This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/