63 | | Disable unnecessary modules, which is currently done in 2 areas: |
64 | | 1. Hide the menus (to reduce UI clutter): |
65 | | * WebUI: /sahana/appadmin/index |
66 | | * Table: {{{db.s3_module}}} |
67 | | 2. Disable the Models (to speed up performance): |
68 | | * edit file {{{models/01_modules.py}}} |
69 | | * section: {{{shn_module_enable}}} |
70 | | 3. Can also reorganise the Modules menu completely to better display those relevant to the instance: |
| 63 | Disable unnecessary modules, which is currently done in {{{models/000_config.py}}} |
| 64 | |
| 65 | Can also reorganise the Modules menu completely to better display those relevant to the instance: |
77 | | table = 'pr_person' |
78 | | db[table].pr_pe_label.readable = False |
79 | | db[table].pr_pe_label.writable = False |
80 | | db[table].local_name.readable = False |
81 | | db[table].local_name.writable = False |
82 | | db[table].opt_pr_gender.readable = False |
83 | | db[table].opt_pr_gender.writable = False |
84 | | db[table].opt_pr_age_group.readable = False |
85 | | db[table].opt_pr_age_group.writable = False |
86 | | db[table].email.readable = False |
87 | | db[table].email.writable = False |
88 | | db[table].mobile_phone.readable = False |
89 | | db[table].mobile_phone.writable = False |
90 | | db[table].date_of_birth.readable = False |
91 | | db[table].date_of_birth.writable = False |
92 | | db[table].opt_pr_nationality.readable = False |
93 | | db[table].opt_pr_nationality.writable = False |
94 | | db[table].opt_pr_country.readable = False |
95 | | db[table].opt_pr_country.writable = False |
96 | | db[table].opt_pr_religion.readable = False |
97 | | db[table].opt_pr_religion.writable = False |
98 | | db[table].opt_pr_marital_status.readable = False |
99 | | db[table].opt_pr_marital_status.writable = False |
100 | | db[table].occupation.readable = False |
101 | | db[table].occupation.writable = False |
| 72 | tablename = 'pr_person' |
| 73 | table = db[table] |
| 74 | table.pr_pe_label.readable = False |
| 75 | table.pr_pe_label.writable = False |
| 76 | table.local_name.readable = False |
| 77 | table.local_name.writable = False |
| 78 | table.opt_pr_gender.readable = False |
| 79 | table.opt_pr_gender.writable = False |
| 80 | table.opt_pr_age_group.readable = False |
| 81 | table.opt_pr_age_group.writable = False |
| 82 | table.email.readable = False |
| 83 | table.email.writable = False |
| 84 | table.mobile_phone.readable = False |
| 85 | table.mobile_phone.writable = False |
| 86 | table.date_of_birth.readable = False |
| 87 | table.date_of_birth.writable = False |
| 88 | table.opt_pr_nationality.readable = False |
| 89 | table.opt_pr_nationality.writable = False |
| 90 | table.opt_pr_country.readable = False |
| 91 | table.opt_pr_country.writable = False |
| 92 | table.opt_pr_religion.readable = False |
| 93 | table.opt_pr_religion.writable = False |
| 94 | table.opt_pr_marital_status.readable = False |
| 95 | table.opt_pr_marital_status.writable = False |
| 96 | table.occupation.readable = False |
| 97 | table.occupation.writable = False |