From 7e15c39fda1930a3c01b22e77acf09adcc7bcca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominic=20K=C3=B6nig?= Date: Tue, 16 Jul 2024 14:58:42 +0200 Subject: [PATCH] Drop demo template RLPRCM --- VERSION | 2 +- modules/templates/RLPRCM/Demo/cases.csv | 6 - modules/templates/RLPRCM/Demo/cms_post.csv | 2 - .../RLPRCM/Demo/dvr_case_appointment_type.csv | 7 - .../RLPRCM/Demo/dvr_case_event_type.csv | 3 - .../templates/RLPRCM/Demo/dvr_case_flag.csv | 11 - .../RLPRCM/Demo/dvr_food_event_type.csv | 7 - modules/templates/RLPRCM/Demo/ext_cases.csv | 5 - modules/templates/RLPRCM/Demo/ext_users.csv | 1 - .../RLPRCM/Demo/org_organisation.csv | 3 - modules/templates/RLPRCM/Demo/shelter.csv | 2 - .../templates/RLPRCM/Demo/shelter_unit.csv | 10 - modules/templates/RLPRCM/Demo/tasks.cfg | 38 - modules/templates/RLPRCM/Demo/users.csv | 9 - modules/templates/RLPRCM/__init__.py | 1 - .../templates/RLPRCM/act_activity_type.csv | 14 - modules/templates/RLPRCM/anonymize.py | 211 -- modules/templates/RLPRCM/auth_roles.csv | 387 --- modules/templates/RLPRCM/checkpoints.py | 64 - modules/templates/RLPRCM/cms_series.csv | 2 - modules/templates/RLPRCM/config.py | 638 ----- modules/templates/RLPRCM/controllers.py | 125 - modules/templates/RLPRCM/css.cfg | 44 - .../templates/RLPRCM/customise/__init__.py | 0 modules/templates/RLPRCM/customise/act.py | 182 -- modules/templates/RLPRCM/customise/auth.py | 344 --- modules/templates/RLPRCM/customise/cms.py | 233 -- modules/templates/RLPRCM/customise/cr.py | 824 ------- modules/templates/RLPRCM/customise/doc.py | 357 --- modules/templates/RLPRCM/customise/dvr.py | 1398 ----------- modules/templates/RLPRCM/customise/hrm.py | 150 -- modules/templates/RLPRCM/customise/org.py | 352 --- modules/templates/RLPRCM/customise/pr.py | 1702 ------------- modules/templates/RLPRCM/customise/project.py | 69 - .../templates/RLPRCM/customise/security.py | 191 -- .../RLPRCM/dvr_case_activity_status.csv | 3 - .../RLPRCM/dvr_case_activity_update_type.csv | 11 - modules/templates/RLPRCM/dvr_case_status.csv | 8 - modules/templates/RLPRCM/dvr_need.csv | 23 - modules/templates/RLPRCM/dvr_note_type.csv | 4 - .../RLPRCM/dvr_residence_permit_type.csv | 7 - .../RLPRCM/dvr_residence_status_type.csv | 11 - .../templates/RLPRCM/dvr_response_status.csv | 7 - .../templates/RLPRCM/dvr_response_theme.csv | 76 - .../templates/RLPRCM/dvr_response_type.csv | 10 - .../RLPRCM/dvr_service_contact_type.csv | 18 - .../RLPRCM/dvr_vulnerability_type.csv | 11 - modules/templates/RLPRCM/gis_config.csv | 2 - .../templates/RLPRCM/gis_layer_feature.csv | 11 - .../templates/RLPRCM/group_member_role.csv | 7 - modules/templates/RLPRCM/helpers.py | 1050 -------- modules/templates/RLPRCM/idcards.py | 2131 ----------------- modules/templates/RLPRCM/job_title.csv | 10 - modules/templates/RLPRCM/layouts.py | 48 - modules/templates/RLPRCM/mailmerge.csv | 1 - modules/templates/RLPRCM/maintenance.py | 145 -- modules/templates/RLPRCM/menus.py | 436 ---- modules/templates/RLPRCM/models/__init__.py | 3 - modules/templates/RLPRCM/models/cr.py | 308 --- modules/templates/RLPRCM/org_group.csv | 3 - modules/templates/RLPRCM/org_organisation.csv | 2 - .../RLPRCM/org_organisation_type.csv | 11 - modules/templates/RLPRCM/org_sector.csv | 10 - modules/templates/RLPRCM/presence.py | 440 ---- modules/templates/RLPRCM/rheaders.py | 498 ---- .../RLPRCM/security_seized_item_type.csv | 9 - modules/templates/RLPRCM/shelter.py | 1345 ----------- modules/templates/RLPRCM/shelter_flag.csv | 10 - modules/templates/RLPRCM/shelter_type.csv | 11 - modules/templates/RLPRCM/stats.py | 1112 --------- modules/templates/RLPRCM/tasks.cfg | 68 - modules/templates/RLPRCM/views/advise.html | 9 - modules/templates/RLPRCM/views/cmspage.html | 6 - modules/templates/RLPRCM/views/footer.html | 10 - modules/templates/RLPRCM/views/index.html | 25 - modules/templates/RLPRCM/views/layout.html | 122 - .../RLPRCM/views/register_case_event.html | 104 - .../RLPRCM/views/shelter_inspection.html | 71 - .../RLPRCM/views/shelter_overview.html | 44 - .../RLPRCM/views/transferability.html | 6 - 80 files changed, 1 insertion(+), 15650 deletions(-) delete mode 100644 modules/templates/RLPRCM/Demo/cases.csv delete mode 100644 modules/templates/RLPRCM/Demo/cms_post.csv delete mode 100644 modules/templates/RLPRCM/Demo/dvr_case_appointment_type.csv delete mode 100644 modules/templates/RLPRCM/Demo/dvr_case_event_type.csv delete mode 100644 modules/templates/RLPRCM/Demo/dvr_case_flag.csv delete mode 100644 modules/templates/RLPRCM/Demo/dvr_food_event_type.csv delete mode 100644 modules/templates/RLPRCM/Demo/ext_cases.csv delete mode 100644 modules/templates/RLPRCM/Demo/ext_users.csv delete mode 100644 modules/templates/RLPRCM/Demo/org_organisation.csv delete mode 100644 modules/templates/RLPRCM/Demo/shelter.csv delete mode 100644 modules/templates/RLPRCM/Demo/shelter_unit.csv delete mode 100644 modules/templates/RLPRCM/Demo/tasks.cfg delete mode 100644 modules/templates/RLPRCM/Demo/users.csv delete mode 100644 modules/templates/RLPRCM/__init__.py delete mode 100644 modules/templates/RLPRCM/act_activity_type.csv delete mode 100644 modules/templates/RLPRCM/anonymize.py delete mode 100644 modules/templates/RLPRCM/auth_roles.csv delete mode 100644 modules/templates/RLPRCM/checkpoints.py delete mode 100644 modules/templates/RLPRCM/cms_series.csv delete mode 100644 modules/templates/RLPRCM/config.py delete mode 100644 modules/templates/RLPRCM/controllers.py delete mode 100644 modules/templates/RLPRCM/css.cfg delete mode 100644 modules/templates/RLPRCM/customise/__init__.py delete mode 100644 modules/templates/RLPRCM/customise/act.py delete mode 100644 modules/templates/RLPRCM/customise/auth.py delete mode 100644 modules/templates/RLPRCM/customise/cms.py delete mode 100644 modules/templates/RLPRCM/customise/cr.py delete mode 100644 modules/templates/RLPRCM/customise/doc.py delete mode 100644 modules/templates/RLPRCM/customise/dvr.py delete mode 100644 modules/templates/RLPRCM/customise/hrm.py delete mode 100644 modules/templates/RLPRCM/customise/org.py delete mode 100644 modules/templates/RLPRCM/customise/pr.py delete mode 100644 modules/templates/RLPRCM/customise/project.py delete mode 100644 modules/templates/RLPRCM/customise/security.py delete mode 100644 modules/templates/RLPRCM/dvr_case_activity_status.csv delete mode 100644 modules/templates/RLPRCM/dvr_case_activity_update_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_case_status.csv delete mode 100644 modules/templates/RLPRCM/dvr_need.csv delete mode 100644 modules/templates/RLPRCM/dvr_note_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_residence_permit_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_residence_status_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_response_status.csv delete mode 100644 modules/templates/RLPRCM/dvr_response_theme.csv delete mode 100644 modules/templates/RLPRCM/dvr_response_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_service_contact_type.csv delete mode 100644 modules/templates/RLPRCM/dvr_vulnerability_type.csv delete mode 100644 modules/templates/RLPRCM/gis_config.csv delete mode 100644 modules/templates/RLPRCM/gis_layer_feature.csv delete mode 100644 modules/templates/RLPRCM/group_member_role.csv delete mode 100644 modules/templates/RLPRCM/helpers.py delete mode 100644 modules/templates/RLPRCM/idcards.py delete mode 100644 modules/templates/RLPRCM/job_title.csv delete mode 100644 modules/templates/RLPRCM/layouts.py delete mode 100644 modules/templates/RLPRCM/mailmerge.csv delete mode 100644 modules/templates/RLPRCM/maintenance.py delete mode 100644 modules/templates/RLPRCM/menus.py delete mode 100644 modules/templates/RLPRCM/models/__init__.py delete mode 100644 modules/templates/RLPRCM/models/cr.py delete mode 100644 modules/templates/RLPRCM/org_group.csv delete mode 100644 modules/templates/RLPRCM/org_organisation.csv delete mode 100644 modules/templates/RLPRCM/org_organisation_type.csv delete mode 100644 modules/templates/RLPRCM/org_sector.csv delete mode 100644 modules/templates/RLPRCM/presence.py delete mode 100644 modules/templates/RLPRCM/rheaders.py delete mode 100644 modules/templates/RLPRCM/security_seized_item_type.csv delete mode 100644 modules/templates/RLPRCM/shelter.py delete mode 100644 modules/templates/RLPRCM/shelter_flag.csv delete mode 100644 modules/templates/RLPRCM/shelter_type.csv delete mode 100644 modules/templates/RLPRCM/stats.py delete mode 100644 modules/templates/RLPRCM/tasks.cfg delete mode 100644 modules/templates/RLPRCM/views/advise.html delete mode 100644 modules/templates/RLPRCM/views/cmspage.html delete mode 100644 modules/templates/RLPRCM/views/footer.html delete mode 100644 modules/templates/RLPRCM/views/index.html delete mode 100644 modules/templates/RLPRCM/views/layout.html delete mode 100644 modules/templates/RLPRCM/views/register_case_event.html delete mode 100644 modules/templates/RLPRCM/views/shelter_inspection.html delete mode 100644 modules/templates/RLPRCM/views/shelter_overview.html delete mode 100644 modules/templates/RLPRCM/views/transferability.html diff --git a/VERSION b/VERSION index 41b93a2f2d..72793b79d3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -nursix-dev-5956-g2c6985ef2 (2024-07-11 16:13:00) +nursix-dev-5957-gc1c6fd937 (2024-07-16 14:58:42) diff --git a/modules/templates/RLPRCM/Demo/cases.csv b/modules/templates/RLPRCM/Demo/cases.csv deleted file mode 100644 index e1c3774100..0000000000 --- a/modules/templates/RLPRCM/Demo/cases.csv +++ /dev/null @@ -1,6 +0,0 @@ -Organisation,Facility,Facility Type,Sex,First Name,Last Name,DOB,Nationality,Family,Head of Family,Shelter,Unit,Case,Registration Date,CaseStatus -AfA Trier,AfA Trier,Shelter,Male,Ahmed,Hamed,1971-03-11,SY,,,AfA Trier,275 8 A,,,OPEN -AfA Trier,AfA Trier,Shelter,Male,Alibrahim,Malik,1970-04-12,SY,Malik,true,AfA Trier,275 8 B,,,OPEN -AfA Trier,AfA Trier,Shelter,Female,Fatima,Malik,1974-12-01,SY,Malik,,AfA Trier,275 8 B,,,OPEN -AfA Trier,AfA Trier,Shelter,Male,Ahmad,Malik,2000-02-12,SY,Malik,,AfA Trier,275 8 B,,,OPEN -AfA Trier,AfA Trier,Shelter,Female,Zaynab,Aziz,1982-03-01,SY,,,AfA Trier,275 8 C,,,OPEN diff --git a/modules/templates/RLPRCM/Demo/cms_post.csv b/modules/templates/RLPRCM/Demo/cms_post.csv deleted file mode 100644 index 15d22895bd..0000000000 --- a/modules/templates/RLPRCM/Demo/cms_post.csv +++ /dev/null @@ -1,2 +0,0 @@ -Name,Body,Module,Resource,Record -Weather,"
Edit this section to add the wheather widget
",weather,weather,1 \ No newline at end of file diff --git a/modules/templates/RLPRCM/Demo/dvr_case_appointment_type.csv b/modules/templates/RLPRCM/Demo/dvr_case_appointment_type.csv deleted file mode 100644 index 15eaf9fa15..0000000000 --- a/modules/templates/RLPRCM/Demo/dvr_case_appointment_type.csv +++ /dev/null @@ -1,7 +0,0 @@ -Organisation,Name,Active,Mandatory for Children,Mandatory for Adolescents,Mandatory for Adults,Presence required,Comments -AfA Trier,BAMF,false,false,false,false,true, -AfA Trier,ED,false,false,false,false,true, -AfA Trier,GU,false,false,false,false,true, -AfA Trier,Transfer,false,false,false,false,true, -AfA Trier,Arzttermin,false,false,false,false,true, -AfA Trier,Ausländerbehörde,false,false,false,false,true, diff --git a/modules/templates/RLPRCM/Demo/dvr_case_event_type.csv b/modules/templates/RLPRCM/Demo/dvr_case_event_type.csv deleted file mode 100644 index 3489418e65..0000000000 --- a/modules/templates/RLPRCM/Demo/dvr_case_event_type.csv +++ /dev/null @@ -1,3 +0,0 @@ -Organisation,Event Class,Code,Name,Inactive,Default,Minimum Interval,Maximum per Day,Multiple,Residents Only,Excluded By,Presence required,Comments -AfA Trier,C,SEEN,Gesehen,false,true,,,false,false,,true,Person has been seen at a checkpoint -AfA Trier,C,MAIL,Post abgeholt,false,false,,,false,false,,true,Person has been to fetch their mail diff --git a/modules/templates/RLPRCM/Demo/dvr_case_flag.csv b/modules/templates/RLPRCM/Demo/dvr_case_flag.csv deleted file mode 100644 index 1cf1926aa3..0000000000 --- a/modules/templates/RLPRCM/Demo/dvr_case_flag.csv +++ /dev/null @@ -1,11 +0,0 @@ -Organisation,Name,External,Not Transferable,Comments -AfA Trier,Gesucht,false,false,Person is sought by the administration -AfA Trier,Inobhutnahme,true,false,Child taken into care of child welfare authorities -AfA Trier,Krankenhaus,true,true,"In Hospital, still entitled to benefits, cannot be transferred" -AfA Trier,Medizin,false,false,Medical conditions that require special handling -AfA Trier,Polizeigewahrsam,true,true,"With the police, still entitled to benefits, cannot be transferred" -AfA Trier,Post,false,false,Client has mail to fetch from the info point -AfA Trier,Priorität,false,false,Conditions exist that require prioritized handling of the case -AfA Trier,Quarantäne,false,true,"Person is to be quarantined, cannot be transferred" -AfA Trier,Schutz,false,false,Vulnerabilities that require protective measures -AfA Trier,Sicherheit,false,false,Security risks that require special handling diff --git a/modules/templates/RLPRCM/Demo/dvr_food_event_type.csv b/modules/templates/RLPRCM/Demo/dvr_food_event_type.csv deleted file mode 100644 index c2dbc52a04..0000000000 --- a/modules/templates/RLPRCM/Demo/dvr_food_event_type.csv +++ /dev/null @@ -1,7 +0,0 @@ -Organisation,Event Class,Code,Name,Inactive,Default,Minimum Interval,Maximum per Day,Multiple,Residents Only,Excluded By,Presence required,Comments -AfA Trier,F,FOOD,Food Distribution,true,false,1,3,true,true,"FOOD-SUHUR,FOOD-IFTAR",false,Person has received food (legacy event type) -AfA Trier,F,FOOD-1,Breakfast,false,false,1,1,true,true,"FOOD-SUHUR,FOOD-IFTAR",false,Person has received breakfast -AfA Trier,F,FOOD-2,Lunch,false,false,1,1,true,true,"FOOD-SUHUR,FOOD-IFTAR",false,Person has received lunch -AfA Trier,F,FOOD-3,Supper,false,false,1,1,true,true,"FOOD-SUHUR,FOOD-IFTAR",false,Person has received supper -AfA Trier,F,FOOD-IFTAR,Iftar (Ramadan),true,false,1,1,true,true,"FOOD,FOOD-1,FOOD-2,FOOD-3",false,Person has participated in iftar -AfA Trier,F,FOOD-SUHUR,Suhur (Ramadan),true,false,1,1,true,true,"FOOD,FOOD-1,FOOD-2,FOOD-4",false,Person has participated in suhur diff --git a/modules/templates/RLPRCM/Demo/ext_cases.csv b/modules/templates/RLPRCM/Demo/ext_cases.csv deleted file mode 100644 index 483378f4f3..0000000000 --- a/modules/templates/RLPRCM/Demo/ext_cases.csv +++ /dev/null @@ -1,5 +0,0 @@ -Organisation,Facility,Facility Type,Sex,First Name,Last Name,DOB,Nationality,Family,Head of Family,Shelter,Unit,Case,Registration Date,CaseStatus -AfA Speyer,,,Male,Ali,Mohammed,1974-06-01,SY,Mohammed,true,,,,,OPEN -AfA Speyer,,,Female,Nahidah,Mohammed,1979-07-04,SY,Mohammed,,,,,,OPEN -AfA Speyer,,,Female,Sedra,Mohammed,2001-02-23,SY,Mohammed,,,,,,OPEN -AfA Speyer,,,Male,Mahmoud,Assi,1981-09-23,SY,,,,,,,OPEN diff --git a/modules/templates/RLPRCM/Demo/ext_users.csv b/modules/templates/RLPRCM/Demo/ext_users.csv deleted file mode 100644 index b68a720ca8..0000000000 --- a/modules/templates/RLPRCM/Demo/ext_users.csv +++ /dev/null @@ -1 +0,0 @@ -First Name,Last Name,Email,Password,Role,Organisation,Facility Type,Office,Language diff --git a/modules/templates/RLPRCM/Demo/org_organisation.csv b/modules/templates/RLPRCM/Demo/org_organisation.csv deleted file mode 100644 index 636d5274de..0000000000 --- a/modules/templates/RLPRCM/Demo/org_organisation.csv +++ /dev/null @@ -1,3 +0,0 @@ -Organisation,Acronym,Type,Groups,Sectors,Country,Website,Email,Phone,Phone2,Comments -AfA Trier,AfA TR,Erstaufnahmeeinrichtung (EA),AfA,"SHELTER,AVB",DE,,,,, -AfA Speyer,AfA SP,Erstaufnahmeeinrichtung (EA),AfA,"SHELTER,AVB",DE,,,,, diff --git a/modules/templates/RLPRCM/Demo/shelter.csv b/modules/templates/RLPRCM/Demo/shelter.csv deleted file mode 100644 index a4cebcb5c0..0000000000 --- a/modules/templates/RLPRCM/Demo/shelter.csv +++ /dev/null @@ -1,2 +0,0 @@ -Name,Type,Organisation,Building,Address,Postcode,Country,L1,L2,L3,L4,Lat,Lon,Phone,Phone1,Email,Website,Comments -AfA Trier,Unterkunftsgebäude,AfA Trier,,Dasbachstr. 19,54292,DE,Rheinland-Pfalz,Trier,Trier,,49.7707,6.67420,,,,, diff --git a/modules/templates/RLPRCM/Demo/shelter_unit.csv b/modules/templates/RLPRCM/Demo/shelter_unit.csv deleted file mode 100644 index 88b0e3f655..0000000000 --- a/modules/templates/RLPRCM/Demo/shelter_unit.csv +++ /dev/null @@ -1,10 +0,0 @@ -Shelter,Unit,Transitory,Capacity,Comments -AfA Trier,Turnhalle,true,155, -AfA Trier,275 8 A,false,6, -AfA Trier,275 8 B,false,6, -AfA Trier,275 8 C,false,6, -AfA Trier,275 8 D,false,6, -AfA Trier,275 8 E,false,6, -AfA Trier,275 8 F,false,6, -AfA Trier,275 8 G,false,6, -AfA Trier,275 8 H,false,6, diff --git a/modules/templates/RLPRCM/Demo/tasks.cfg b/modules/templates/RLPRCM/Demo/tasks.cfg deleted file mode 100644 index e679611e87..0000000000 --- a/modules/templates/RLPRCM/Demo/tasks.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# ============================================================================= -# Add a list of CSV files to import into the system -# -# The list of import files is a comma separated list as follows: -# -# prefix,tablename,csv file name,stylesheet -# -# The CSV file is assumed to be in the same directory as this file -# The style sheet is assumed to be in either of the following directories: -# static/formats/s3csv/prefix/ -# static/formats/s3csv/ -# -# For details on how to import data into the system see the following: -# zzz_1st_run -# core.tools.bi:BulkImporter -# ============================================================================= -# Import organisations and shelters -org,organisation,org_organisation.csv,organisation.xsl -cr,shelter,shelter.csv,shelter.xsl -# Org-specific types -dvr,case_flag,dvr_case_flag.csv,case_flag.xsl -dvr,case_event_type,dvr_case_event_type.csv,case_event_type.xsl -dvr,case_event_type,dvr_food_event_type.csv,case_event_type.xsl -dvr,case_appointment_type,dvr_case_appointment_type.csv,case_appointment_type.xsl -# Import users -*,import_users,users.csv -*,import_users,ext_users.csv -# Associate Users with Organisations & Sites -pr,person,users.csv,hrm/person.xsl -# Shelter Units -cr,shelter_unit,shelter_unit.csv,shelter_unit.xsl -# Cases -pr,person,cases.csv,dvr/person.xsl -pr,person,ext_cases.csv,dvr/person.xsl -cr,shelter_registration,cases.csv,shelter_registration.xsl -# CMS -# cms,post,cms_post.csv,post.xsl -# END ------------------------------------------------------------------------- diff --git a/modules/templates/RLPRCM/Demo/users.csv b/modules/templates/RLPRCM/Demo/users.csv deleted file mode 100644 index 2ec6762842..0000000000 --- a/modules/templates/RLPRCM/Demo/users.csv +++ /dev/null @@ -1,9 +0,0 @@ -First Name,Last Name,Email,Password,Role,Organisation,Language -Admin,ADD,add_admin@example.com,eden,"ORG_GROUP_ADMIN/0,NEWSLETTER_AUTHOR/0,STAFF",Aufsichts- und Dienstleistungsdirektion,de -Admin,AfA TR,tr_admin@example.com,eden,"ORG_ADMIN,CASE_ADMIN,SHELTER_ADMIN,STAFF",AfA Trier,de -Case Admin,AfA TR,tr_case_admin@example.com,eden,"CASE_ADMIN,SHELTER_MANAGER,STAFF",AfA Trier,de -Case Manager,AfA TR,tr_case_manager@example.com,eden,"CASE_MANAGER,CHECKPOINT,STAFF",AfA Trier,de -Caterer,AfA TR,tr_caterer@example.com,eden,"CATERING,STAFF",AfA Trier,de -Security,AfA TR,tr_security@example.com,eden,"SECURITY,STAFF",AfA Trier,de -Admin,AfA SP,sp_admin@example.com,eden,"ORG_ADMIN,CASE_ADMIN,STAFF",AfA Speyer,de -Case Manager,AfA SP,sp_case_manager@example.com,eden,"CASE_ADMIN,STAFF",AfA Speyer,de diff --git a/modules/templates/RLPRCM/__init__.py b/modules/templates/RLPRCM/__init__.py deleted file mode 100644 index 8b13789179..0000000000 --- a/modules/templates/RLPRCM/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/modules/templates/RLPRCM/act_activity_type.csv b/modules/templates/RLPRCM/act_activity_type.csv deleted file mode 100644 index deb4af97f9..0000000000 --- a/modules/templates/RLPRCM/act_activity_type.csv +++ /dev/null @@ -1,14 +0,0 @@ -Type,Code,Obsolete,Comments -Arbeitsmarktvorbereitung,LMT,, -Beschäftigung,OCC,, -Bildung,EDU,, -Brandschutz,FP,, -Gemeinschaft,SA,, -Information,INFO,, -Integration,INTG,, -Kinderbetreuung,CC,, -Rechtsunterweisung,LRI,, -Selbsthilfe,SG,, -Sport,SPT,, -Sprachkurs,LT,, -Unterhaltung,ENTM,, diff --git a/modules/templates/RLPRCM/anonymize.py b/modules/templates/RLPRCM/anonymize.py deleted file mode 100644 index 9a6cf9b122..0000000000 --- a/modules/templates/RLPRCM/anonymize.py +++ /dev/null @@ -1,211 +0,0 @@ -""" - Anonymizer rules for MRCMS - - License: MIT -""" - -from core import anonymous_address, obscure_dob - -# ============================================================================= -def anonymize_rules(): - """ Rules to anonymize a case file """ - - ANONYMOUS = "-" - - # Helper to produce an anonymous ID (pe_label) - anonymous_id = lambda record_id, f, v: "NN%06d" % int(record_id) - - # Identity documents - identity_documents = ("pr_identity_document", {"key": "identity_id", - "match": "id", - "fields": {"file": "remove", - }, - "delete": True, - }) - - # Attached documents - documents = ("doc_document", {"key": "doc_id", - "match": "doc_id", - "fields": {"name": ("set", ANONYMOUS), - "file": "remove", - "comments": "remove", - }, - "delete": True, - }) - - # Case activity updates - activity_updates = ("dvr_case_activity_update", {"key": "case_activity_id", - "match": "id", - "fields": {"comments": ("set", ANONYMOUS), - }, - "delete": True, - }) - - # Response theme details - response_details = ("dvr_response_action_theme", {"key": "action_id", - "match": "id", - "fields": {"comments": ("set", ANONYMOUS), - }, - }) - - rules = [# Remove identity of beneficiary - {"name": "default", - "title": "Names, IDs, Reference Numbers, Contact Information, Addresses", - - "fields": {"first_name": ("set", ANONYMOUS), - "middle_name": "remove", - "last_name": ("set", ANONYMOUS), - "pe_label": anonymous_id, - "date_of_birth": obscure_dob, - "comments": "remove", - }, - - "cascade": [("dvr_case", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - "reference": "remove", - }, - }), - ("pr_person_tag", {"key": "person_id", - "match": "id", - "fields": {"value": ("set", ANONYMOUS), - }, - "delete": True, - }), - ("pr_person_details", {"key": "person_id", - "match": "id", - "fields": {"education": "remove", - "occupation": "remove", - }, - }), - ("pr_contact", {"key": "pe_id", - "match": "pe_id", - "fields": {"contact_description": "remove", - "value": ("set", ""), - "comments": "remove", - }, - "delete": True, - }), - ("pr_contact_emergency", {"key": "pe_id", - "match": "pe_id", - "fields": {"name": ("set", ANONYMOUS), - "relationship": "remove", - "phone": "remove", - "comments": "remove", - }, - "delete": True, - }), - ("pr_address", {"key": "pe_id", - "match": "pe_id", - "fields": {"location_id": anonymous_address, - "comments": "remove", - }, - }), - ("pr_identity", {"key": "person_id", - "match": "id", - "fields": {"value": ("set", ANONYMOUS), - "description": "remove", - "image": "remove", - "vhash": "remove", - "comments": "remove" - }, - "cascade": [identity_documents], - "delete": True, - }), - ("dvr_residence_status", {"key": "person_id", - "match": "id", - "fields": {"reference": ("set", ANONYMOUS), - "comments": "remove", - }, - }), - ("dvr_service_contact", {"key": "person_id", - "match": "id", - "fields": {"organisation": "remove", - "reference": "remove", - "contact": "remove", - "phone": "remove", - "email": "remove", - "comments": "remove", - }, - "delete": True, - }), - ], - }, - - # Remove activity details, appointments and notes - {"name": "activities", - "title": "Counseling Details, Appointments, Notes", - "cascade": [("dvr_case_language", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - }, - }), - ("dvr_case_appointment", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - }, - }), - ("dvr_case_event", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - }, - }), - ("dvr_case_activity", {"key": "person_id", - "match": "id", - "fields": {"subject": ("set", ANONYMOUS), - "need_details": "remove", - "outcome": "remove", - "achievement": "remove", - "activity_details": "remove", - "outside_support": "remove", - "comments": "remove", - }, - "cascade": [activity_updates], - }), - ("dvr_response_action", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - }, - "cascade": [response_details], - }), - ("dvr_vulnerability", {"key": "person_id", - "match": "id", - "fields": {"comments": "remove", - "description": ("set", ANONYMOUS), - }, - }), - ("dvr_note", {"key": "person_id", - "match": "id", - "fields": {"note": "remove", - }, - "delete": True, - }), - ], - }, - - # Remove photos and attachments - {"name": "documents", - "title": "Photos and Documents", - "cascade": [("dvr_case", {"key": "person_id", - "match": "id", - "cascade": [documents], - }), - ("dvr_case_activity", {"key": "person_id", - "match": "id", - "cascade": [documents], - }), - ("pr_image", {"key": "pe_id", - "match": "pe_id", - "fields": {"image": "remove", - "url": "remove", - "description": "remove", - }, - "delete": True, - }), - ], - }, - ] - - return rules - -# END ========================================================================= diff --git a/modules/templates/RLPRCM/auth_roles.csv b/modules/templates/RLPRCM/auth_roles.csv deleted file mode 100644 index e00d4105b5..0000000000 --- a/modules/templates/RLPRCM/auth_roles.csv +++ /dev/null @@ -1,387 +0,0 @@ -uid,role,description,hidden,controller,function,table,uacl,oacl,entity,notes -AUTHENTICATED,Authenticated User,,,gis,location,,CREATE|READ,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,gis,,,READ,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,hrm,index,,NONE,,, -AUTHENTICATED,Authenticated User,,,hrm,person,,,READ|UPDATE,, -AUTHENTICATED,Authenticated User,,,hrm,staff,,NONE,,, -AUTHENTICATED,Authenticated User,,,hrm,,,NONE,,, -AUTHENTICATED,Authenticated User,,,msg,search,,READ,,, -AUTHENTICATED,Authenticated User,,,pr,pentity,,READ,,, -AUTHENTICATED,Authenticated User,,,pr,person,,,READ|UPDATE,, -AUTHENTICATED,Authenticated User,,,pr,person_search,,READ,,, -AUTHENTICATED,Authenticated User,,,pr,,,CREATE,READ|UPDATE,, -AUTHENTICATED,Authenticated User,,,,,act_activity_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,cr_shelter_flag,READ,,, -AUTHENTICATED,Authenticated User,,,,,cr_shelter_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_case_activity_status,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_case_status,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_need,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_note_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_response_status,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_response_theme,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_response_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_service_contact_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,dvr_vulnerability_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_facility,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_facility_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_group,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_group_membership,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_organisation,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_organisation_organisation_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_organisation_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_sector,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_sector_organisation,READ,,, -AUTHENTICATED,Authenticated User,,,,,org_site_facility_type,READ,,, -AUTHENTICATED,Authenticated User,,,,,pr_address,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_contact,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_contact_emergency,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_filter,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_identity,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_image,CREATE,READ|UPDATE|DELETE,, -AUTHENTICATED,Authenticated User,,,,,pr_person,,READ|UPDATE,, -AUTHENTICATED,Authenticated User,,,,,pr_person_details,,READ|UPDATE,, -AUTHENTICATED,Authenticated User,,,,,security_seized_item_type,READ,,, -CASE_ADMIN,Case Administrator,,,act,,,NONE,,, -CASE_ADMIN,Case Administrator,,,dvr,case_activity,,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,dvr,case_appointment,,READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,dvr,case_event,,CREATE|READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,dvr,document,,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,dvr,due_followups,,READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,dvr,group_membership,,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,dvr,person,,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,dvr,,,READ,,, -CASE_ADMIN,Case Administrator,,,org,group,,NONE,,, -CASE_ADMIN,Case Administrator,,,org,organisation,,READ,,, -CASE_ADMIN,Case Administrator,,,org,,,READ,,, -CASE_ADMIN,Case Administrator,,,pr,contact,,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,security,,,NONE,,, -CASE_ADMIN,Case Administrator,,,,,act_activity,READ,,, -CASE_ADMIN,Case Administrator,,,,,act_beneficiary,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,doc_document,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,doc_image,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case,CREATE|READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_activity,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_appointment,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_appointment_type,READ,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_event,CREATE|READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_event_type,READ,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_flag,READ,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_flag_case,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_case_language,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_note,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_response_action,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_response_action_theme,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,dvr_service_contact,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,hrm_human_resource,READ,,, -CASE_ADMIN,Case Administrator,,,,,org_organisation,READ,,, -CASE_ADMIN,Case Administrator,,,,,org_sector_organisation,READ,,, -CASE_ADMIN,Case Administrator,,,,,pr_address,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_contact,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_contact_emergency,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_group_membership,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_identity,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_image,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,pr_person,CREATE|READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,,,pr_person_details,CREATE|READ|UPDATE,,, -CASE_ADMIN,Case Administrator,,,,,pr_person_tag,CREATE|READ|UPDATE|DELETE,,, -CASE_ADMIN,Case Administrator,,,,,security_seized_item,READ,,, -CASE_ADMIN,Case Administrator,,,,,security_seized_item_depository,READ,,, -CASE_ASSISTANT,Case Assistant / Carer,,,dvr,person,,READ,,, -CASE_ASSISTANT,Case Assistant / Carer,,,dvr,,,READ,,, -CASE_ASSISTANT,Case Assistant / Carer,,,,,pr_person,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,act,,,NONE,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,case_activity,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,document,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,group_membership,,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,person,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,response_action,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,counsel,,,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,case_activity,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,case_appointment,,READ|UPDATE,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,case_event,,CREATE|READ|UPDATE,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,group_membership,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,person,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,dvr,,,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,org,group,,NONE,,, -CASE_MANAGER,Case Manager / Counselor,,,org,organisation,,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,org,,,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,pr,contact,,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,act_activity,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,act_beneficiary,CREATE|READ,UPDATE|DELETE,, -CASE_MANAGER,Case Manager / Counselor,,,,,doc_document,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,doc_image,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_activity,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_activity_update,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_appointment,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_appointment_type,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_event,CREATE|READ|UPDATE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_event_type,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_flag,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_flag_case,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_case_language,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_need_case,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_note,CREATE|READ,UPDATE|DELETE,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_response_action,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_response_action_theme,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_service_contact,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_vulnerability,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_vulnerability_case_activity,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,dvr_vulnerability_response_action,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,hrm_human_resource,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,org_organisation,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,org_sector_organisation,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_address,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_contact,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_contact_emergency,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_group_membership,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_identity,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_image,CREATE|READ|UPDATE|DELETE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_person,READ|UPDATE,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_person_details,READ,,, -CASE_MANAGER,Case Manager / Counselor,,,,,pr_person_tag,READ,,, -CATERING,Catering,,,dvr,,,NONE,,, -CATERING,Catering,,,dvr,case_event,,CREATE|READ|UPDATE,,, -CATERING,Catering,,,,,dvr_case,READ,,, -CATERING,Catering,,,,,dvr_case_event,CREATE|READ|UPDATE,,, -CATERING,Catering,,,,,dvr_case_event_type,READ,,, -CATERING,Catering,,,,,dvr_case_flag,READ,,, -CATERING,Catering,,,,,dvr_case_flag_case,READ,,, -CATERING,Catering,,,,,pr_image,READ,,, -CATERING,Catering,,,,,pr_person,READ,,, -CATERING,Catering,,,,,pr_person_details,READ,,, -CATERING,Catering,,,,,pr_person_tag,READ,,, -CHECKPOINT,Checkpoint,,,dvr,,,READ,,, -JANITOR,Janitor / Cleaner,,,cr,,,READ,,, -MAP_ADMIN,Map Admin,,true,gis,index,,READ,,, -NEWSLETTER_AUTHOR,Newsletter Author,,,cms,newsletter,,READ|DELETE,,any, -NEWSLETTER_AUTHOR,Newsletter Author,,,cms,newsletter,,CREATE|READ|UPDATE|DELETE,,, -NEWSLETTER_AUTHOR,Newsletter Author,,,cms,read_newsletter,,READ,,, -NEWSLETTER_AUTHOR,Newsletter Author,,,,,cms_newsletter,NONE,,any, -NEWSLETTER_AUTHOR,Newsletter Author,,,,,cms_newsletter,CREATE|READ|UPDATE|DELETE,,, -NEWSLETTER_AUTHOR,Newsletter Author,,,,,cms_newsletter_recipient,CREATE|READ|DELETE,,any, -NEWSLETTER_AUTHOR,Newsletter Author,,,,,doc_document,CREATE|READ,UPDATE|DELETE,, -NEWSLETTER_AUTHOR,Newsletter Author,,,,,pr_filter,,READ,, -ORG_ADMIN,Organisation Administrator,,,act,activity,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,act,activity_type,,NONE,,, -ORG_ADMIN,Organisation Administrator,,,act,,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,admin,user,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,cms,newsletter_recipient,,UPDATE,,, -ORG_ADMIN,Organisation Administrator,,,cms,read_newsletter,,READ,,any, -ORG_ADMIN,Organisation Administrator,,,dvr,case_appointment_type,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,dvr,case_event_type,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,dvr,case_flag,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,dvr,person,,READ,,, -ORG_ADMIN,Organisation Administrator,,,dvr,,,READ,,, -ORG_ADMIN,Organisation Administrator,,,hrm,human_resource,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,hrm,person,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,hrm,staff,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,org,group,,NONE,,, -ORG_ADMIN,Organisation Administrator,,,org,organisation,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,org,,,READ,,, -ORG_ADMIN,Organisation Administrator,,,pr,contact,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,pr,person,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,security,seized_item,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,security,seized_item_depository,,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,security,seized_item_type,,NONE,,, -ORG_ADMIN,Organisation Administrator,,,security,,,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,act_activity,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,act_beneficiary,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,cms_newsletter,READ,,any, -ORG_ADMIN,Organisation Administrator,,,,,cms_newsletter_recipient,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,doc_document,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,doc_image,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,dvr_case,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,dvr_case_appointment_type,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,dvr_case_event,CREATE|READ,,, -ORG_ADMIN,Organisation Administrator,,,,,dvr_case_event_type,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,dvr_case_flag,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,hrm_human_resource,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,org_group,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,org_group_membership,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,org_organisation,READ|UPDATE,,, -ORG_ADMIN,Organisation Administrator,,,,,org_organisation_organisation_type,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,org_sector_organisation,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_address,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_contact,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_contact_emergency,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_group_membership,READ,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_identity,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_image,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_person,CREATE|READ|UPDATE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_person_details,CREATE|READ|UPDATE,,, -ORG_ADMIN,Organisation Administrator,,,,,pr_person_tag,CREATE|READ|UPDATE|DELETE,,, -ORG_ADMIN,Organisation Administrator,,,,,security_seized_item,READ|UPDATE,,, -ORG_ADMIN,Organisation Administrator,,,,,security_seized_item_depository,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,act,activity,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,act,activity_type,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,act,,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,false,admin,user,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,need,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,person,,NONE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,response_theme,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,response_type,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,vulnerability_type,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,counsel,,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,cr,shelter,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,cr,,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,hrm,human_resource,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,hrm,index,,NONE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,hrm,person,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,hrm,staff,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,org,group,,READ|UPDATE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,org,organisation,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,org,,,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,pr,contact,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,pr,person,,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,security,,,NONE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,act_activity,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,act_activity_type,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,act_beneficiary,NONE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,cr_shelter,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,doc_document,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,doc_image,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,dvr_need,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,dvr_response_theme,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,dvr_response_type,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,hrm_human_resource,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_group,READ|UPDATE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_group_membership,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_office,READ,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_organisation,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_organisation_organisation_type,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,org_sector_organisation,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_address,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_contact,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_contact_emergency,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_person,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_person_details,CREATE|READ|UPDATE|DELETE,,, -ORG_GROUP_ADMIN,Organisation Group Administrator,,,,,pr_person_tag,CREATE|READ|UPDATE|DELETE,,, -QUARTERMASTER,Quarter Master,,,cr,shelter,,CREATE|READ|UPDATE,DELETE,, -QUARTERMASTER,Quarter Master,,,cr,shelter_registration,,CREATE|READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,cr,,,READ,,, -QUARTERMASTER,Quarter Master,,,dvr,case_event,,CREATE|READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,dvr,person,,READ,,, -QUARTERMASTER,Quarter Master,,,dvr,,,READ,,, -QUARTERMASTER,Quarter Master,,,security,person_search,,READ,,, -QUARTERMASTER,Quarter Master,,,security,seized_item,,CREATE|READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,,,cr_shelter,READ,,, -QUARTERMASTER,Quarter Master,,,,,cr_shelter_inspection,READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,,,cr_shelter_registration,CREATE|READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,,,cr_shelter_unit,READ,,, -QUARTERMASTER,Quarter Master,,,,,doc_document,CREATE|READ,UPDATE|DELETE,, -QUARTERMASTER,Quarter Master,,,,,doc_image,CREATE|READ,UPDATE|DELETE,, -QUARTERMASTER,Quarter Master,,,,,dvr_case,READ,,, -QUARTERMASTER,Quarter Master,,,,,dvr_case_appointment_type,READ,,, -QUARTERMASTER,Quarter Master,,,,,dvr_case_event,CREATE|READ,,, -QUARTERMASTER,Quarter Master,,,,,dvr_case_event_type,READ,,, -QUARTERMASTER,Quarter Master,,,,,dvr_case_flag,READ,,, -QUARTERMASTER,Quarter Master,,,,,dvr_case_flag_case,READ,,, -QUARTERMASTER,Quarter Master,,,,,org_organisation,READ,,, -QUARTERMASTER,Quarter Master,,,,,org_site_presence,READ,,, -QUARTERMASTER,Quarter Master,,,,,org_site_presence_event,READ,,, -QUARTERMASTER,Quarter Master,,,,,pr_identity,READ,,, -QUARTERMASTER,Quarter Master,,,,,pr_image,READ,,, -QUARTERMASTER,Quarter Master,,,,,pr_person,READ,,, -QUARTERMASTER,Quarter Master,,,,,security_seized_item,CREATE|READ|UPDATE,,, -QUARTERMASTER,Quarter Master,,,,,security_seized_item_depository,READ,,, -SECURITY,Security Staff,,,cr,shelter,,CREATE|READ|UPDATE|DELETE,,, -SECURITY,Security Staff,,,cr,,,READ,,, -SECURITY,Security Staff,,,dvr,person,,READ,,, -SECURITY,Security Staff,,,security,person,,CREATE|READ|UPDATE,,, -SECURITY,Security Staff,,,security,person_search,,READ,,, -SECURITY,Security Staff,,,security,seized_item,,CREATE|READ|UPDATE,,, -SECURITY,Security Staff,,,security,seized_item_depository,,READ,,, -SECURITY,Security Staff,,,security,seized_item_type,,NONE,,, -SECURITY,Security Staff,,,security,,,READ,,, -SECURITY,Security Staff,,,,,cr_shelter,READ,,, -SECURITY,Security Staff,,,,,cr_shelter_note,CREATE|READ|UPDATE|DELETE,,, -SECURITY,Security Staff,,,,,cr_shelter_registration,CREATE|READ|UPDATE,,, -SECURITY,Security Staff,,,,,cr_shelter_registration_history,READ,,, -SECURITY,Security Staff,,,,,cr_shelter_unit,READ,,, -SECURITY,Security Staff,,,,,doc_document,CREATE|READ,UPDATE|DELETE,, -SECURITY,Security Staff,,,,,doc_image,CREATE|READ,UPDATE|DELETE,, -SECURITY,Security Staff,,,,,dvr_case,READ,,, -SECURITY,Security Staff,,,,,dvr_case_appointment_type,READ,,, -SECURITY,Security Staff,,,,,dvr_case_event,READ,,, -SECURITY,Security Staff,,,,,dvr_case_event_type,READ,,, -SECURITY,Security Staff,,,,,dvr_case_flag,READ,,, -SECURITY,Security Staff,,,,,dvr_case_flag_case,READ,,, -SECURITY,Security Staff,,,,,dvr_case_language,READ,,, -SECURITY,Security Staff,,,,,dvr_case_status,READ,,, -SECURITY,Security Staff,,,,,dvr_note,CREATE|READ,UPDATE|DELETE,, -SECURITY,Security Staff,,,,,hrm_human_resource,READ,,, -SECURITY,Security Staff,,,,,org_organisation,READ,,, -SECURITY,Security Staff,,,,,org_site_presence,READ,,, -SECURITY,Security Staff,,,,,org_site_presence_event,CREATE|READ,,, -SECURITY,Security Staff,,,,,pr_address,READ,,, -SECURITY,Security Staff,,,,,pr_contact,READ,,, -SECURITY,Security Staff,,,,,pr_contact_emergency,READ,,, -SECURITY,Security Staff,,,,,pr_group_membership,READ,,, -SECURITY,Security Staff,,,,,pr_identity,READ,,, -SECURITY,Security Staff,,,,,pr_image,READ,,, -SECURITY,Security Staff,,,,,pr_person,READ,,, -SECURITY,Security Staff,,,,,pr_person_details,READ,,, -SECURITY,Security Staff,,,,,pr_person_tag,READ,,, -SECURITY,Security Staff,,,,,security_seized_item,CREATE|READ|UPDATE,,, -SECURITY,Security Staff,,,,,security_seized_item_depository,READ,,, -SHELTER_ADMIN,Shelter Administrator,,,cr,shelter,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,cr,,,READ,,, -SHELTER_ADMIN,Shelter Administrator,,,security,seized_item,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,security,seized_item_depository,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,security,,,READ,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter_inspection,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter_note,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter_registration,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter_registration_history,READ,,, -SHELTER_ADMIN,Shelter Administrator,,,,,cr_shelter_unit,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,org_site_presence,READ,,, -SHELTER_ADMIN,Shelter Administrator,,,,,org_site_presence_event,CREATE|READ,,, -SHELTER_ADMIN,Shelter Administrator,,,,,security_seized_item,CREATE|READ|UPDATE|DELETE,,, -SHELTER_ADMIN,Shelter Administrator,,,,,security_seized_item_depository,CREATE|READ|UPDATE|DELETE,,, -SHELTER_MANAGER,Shelter Manager,,,cr,shelter,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_MANAGER,Shelter Manager,,,cr,,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,dvr,person,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_MANAGER,Shelter Manager,,,dvr,,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,org,organisation,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,org,,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,pr,person,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,pr,person_search,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,security,seized_item,,CREATE|READ|UPDATE|DELETE,,, -SHELTER_MANAGER,Shelter Manager,,,security,person_search,,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter_inspection,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter_note,CREATE|READ|UPDATE|DELETE,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter_registration,CREATE|READ|UPDATE,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter_registration_history,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,cr_shelter_unit,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case_event,CREATE|READ|UPDATE,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case_event_type,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case_flag,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case_flag_case,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_case_language,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,dvr_note,CREATE|READ,UPDATE|DELETE,, -SHELTER_MANAGER,Shelter Manager,,,,,org_organisation,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,org_organisation_organisation_type,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,org_sector_organisation,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,org_site_presence,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,org_site_presence_event,CREATE|READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_contact,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_contact_emergency,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_group_membership,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_image,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_person,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,pr_person_details,READ,,, -SHELTER_MANAGER,Shelter Manager,,,,,security_seized_item,CREATE|READ|UPDATE,,, -SHELTER_MANAGER,Shelter Manager,,,,,security_seized_item_depository,READ,,, -STAFF,Staff Member,,,org,organisation,,READ,,, -STAFF,Staff Member,,,,,doc_document,READ,,, -STAFF,Staff Member,,,,,doc_image,READ,,, -STAFF,Staff Member,,,,,dvr_case_appointment_type,READ,,, -STAFF,Staff Member,,,,,dvr_case_event_type,READ,,, -STAFF,Staff Member,,,,,dvr_case_flag,READ,,, -STAFF,Staff Member,,,,,org_organisation,READ,,, -STAFF,Staff Member,,,,,org_organisation_organisation_type,READ,,, -STAFF,Staff Member,,,,,org_sector_organisation,READ,,, diff --git a/modules/templates/RLPRCM/checkpoints.py b/modules/templates/RLPRCM/checkpoints.py deleted file mode 100644 index c3c35b7999..0000000000 --- a/modules/templates/RLPRCM/checkpoints.py +++ /dev/null @@ -1,64 +0,0 @@ -""" - Custom checkpoints for MRCMS - - License: MIT -""" - -from gluon import current - -from core import Checkpoint - -# ============================================================================= -class ActivityParticipation(Checkpoint): - - EVENT_CLASS = "B" - - @staticmethod - def ajax_url(r): - - return r.url(None, method="register_activity", representation="json") - - # ------------------------------------------------------------------------- - @classmethod - def get_event_types(cls, organisation_id=None, type_filter=None): - """ - Looks up all available event types for the organisation; - deviates from parent class method in that it restricts to event - types linked to current activities (i.e. excluding past/future - activities) - - Args: - organisation_id: the organisation record ID - type_filter: a filter query for event type selection - - Returns: - a dict {event_type_id: event_type_row} - """ - - s3db = current.s3db - atable = s3db.act_activity - ttable = s3db.dvr_case_event_type - - # Get current activities - today = current.request.utcnow.date() - query = (atable.organisation_id == organisation_id) & \ - ((atable.date == None) | (atable.date <= today)) & \ - ((atable.end_date == None) | (atable.end_date >= today)) & \ - (atable.deleted == False) - activity_ids = current.db(query)._select(atable.id) - - return super().get_event_types(organisation_id, - ttable.activity_id.belongs(activity_ids), - ) - -# ============================================================================= -class FoodDistribution(Checkpoint): - - EVENT_CLASS = "F" - - @staticmethod - def ajax_url(r): - - return r.url(None, method="register_food", representation="json") - -# END ========================================================================= diff --git a/modules/templates/RLPRCM/cms_series.csv b/modules/templates/RLPRCM/cms_series.csv deleted file mode 100644 index bdcb259b23..0000000000 --- a/modules/templates/RLPRCM/cms_series.csv +++ /dev/null @@ -1,2 +0,0 @@ -Name,Avatar,Location,Rich Text,Replies,Comments -Announcements,NO,NO,NO,NO,Post Series for Homepage Announcements diff --git a/modules/templates/RLPRCM/config.py b/modules/templates/RLPRCM/config.py deleted file mode 100644 index ab95110f70..0000000000 --- a/modules/templates/RLPRCM/config.py +++ /dev/null @@ -1,638 +0,0 @@ -""" - RLPRCM: Migrant Reception Center and Case Management System - - License: MIT -""" - -from collections import OrderedDict - -from gluon import current -from gluon.storage import Storage - -# ============================================================================= -def config(settings): - - T = current.T - - settings.base.system_name = "MRCMS" - settings.base.system_name_short = "MRCMS" - - # PrePopulate data - settings.base.prepopulate += ("RLPRCM",) - settings.base.prepopulate_demo += ("RLPRCM/Demo",) - - # Theme (folder to use for views/layout.html) - settings.base.theme = "RLP" - settings.base.theme_config = "RLPRCM" - settings.base.theme_layouts = "RLPRCM" - - # Custom models/controllers - settings.base.models = "templates.RLPRCM.models" - settings.base.rest_controllers = {("counsel", "index"): None, - ("counsel", "person"): ("pr", "person"), - ("counsel", "group_membership"): ("pr", "group_membership"), - ("counsel", "document"): ("doc", "document"), - ("counsel", "need"): ("dvr", "need"), - ("counsel", "response_action"): ("dvr", "response_action"), - ("counsel", "response_type"): ("dvr", "response_type"), - ("counsel", "response_theme"): ("dvr", "response_theme"), - ("counsel", "vulnerability_type"): ("dvr", "vulnerability_type"), - } - - # Authentication settings - # Should users be allowed to register themselves? - settings.security.self_registration = False - # Do new users need to verify their email address? - #settings.auth.registration_requires_verification = True - # Do new users need to be approved by an administrator prior to being able to login? - #settings.auth.registration_requires_approval = True - settings.auth.registration_requests_organisation = True - settings.auth.registration_link_user_to = {"staff": T("Staff"), - #"volunteer": T("Volunteer"), - } - settings.auth.registration_link_user_to_default = ["staff"] - # Disable password-retrieval feature - settings.auth.password_retrieval = False - - # Approval emails get sent to all admins - settings.mail.approver = "ADMIN" - - # Restrict the Location Selector to just certain countries - # NB This can also be over-ridden for specific contexts later - # e.g. Activities filtered to those of parent Project - settings.gis.countries = ("DE",) - # Uncomment to display the Map Legend as a floating DIV - settings.gis.legend = "float" - # Uncomment to Disable the Postcode selector in the LocationSelector - #settings.gis.postcode_selector = False # @ToDo: Vary by country (include in the gis_config!) - # Uncomment to show the Print control: - # http://eden.sahanafoundation.org/wiki/UserGuidelines/Admin/MapPrinting - #settings.gis.print_button = True - - # Settings suitable for Housing Units - # - move into customise fn if also supporting other polygons - settings.gis.precision = 5 - settings.gis.simplify_tolerance = 0 - settings.gis.bbox_min_size = 0.001 - #settings.gis.bbox_offset = 0.007 - - # L10n settings - # Languages used in the deployment (used for Language Toolbar & GIS Locations) - # http://www.loc.gov/standards/iso639-2/php/code_list.php - settings.L10n.languages = OrderedDict([ - ("en", "English"), - ("de", "German"), - ]) - # Default language for Language Toolbar (& GIS Locations in future) - settings.L10n.default_language = "de" - # Uncomment to Hide the language toolbar - #settings.L10n.display_toolbar = False - # Default timezone for users - settings.L10n.timezone = "Europe/Berlin" - # Number formats (defaults to ISO 31-0) - # Decimal separator for numbers (defaults to ,) - settings.L10n.decimal_separator = "." - # Thousands separator for numbers (defaults to space) - settings.L10n.thousands_separator = "," - # Uncomment this to Translate Layer Names - #settings.L10n.translate_gis_layer = True - # Uncomment this to Translate Location Names - #settings.L10n.translate_gis_location = True - # Uncomment this to Translate Organisation Names/Acronyms - #settings.L10n.translate_org_organisation = True - # Finance settings - settings.fin.currencies = { - "EUR" : "Euros", - # "GBP" : "Great British Pounds", - # "USD" : "United States Dollars", - } - settings.fin.currency_default = "EUR" - - # Security Policy - # http://eden.sahanafoundation.org/wiki/S3AAA#System-widePolicy - # 1: Simple (default): Global as Reader, Authenticated as Editor - # 2: Editor role required for Update/Delete, unless record owned by session - # 3: Apply Controller ACLs - # 4: Apply both Controller & Function ACLs - # 5: Apply Controller, Function & Table ACLs - # 6: Apply Controller, Function, Table ACLs and Entity Realm - # 7: Apply Controller, Function, Table ACLs and Entity Realm + Hierarchy - # - settings.security.policy = 7 # Controller, Function, Table rules with hierarchical realms - - # Version details on About-page require login - settings.security.version_info_requires_login = True - - # ------------------------------------------------------------------------- - # Defaults for custom settings - # - settings.custom.autogenerate_case_ids = True - - # ------------------------------------------------------------------------- - # General UI settings - # - settings.ui.calendar_clear_icon = True - settings.ui.auth_user_represent = "name" - - # ------------------------------------------------------------------------- - # AUTH Settings - # - from .customise.auth import realm_entity, \ - auth_user_resource - - settings.auth.privileged_roles = {"NEWSLETTER_AUTHOR": "ADMIN", - "SHELTER_ADMIN": ("ORG_GROUP_ADMIN", "SHELTER_ADMIN"), - "SHELTER_MANAGER": ("ORG_GROUP_ADMIN", "SHELTER_ADMIN"), - "STAFF": ("ORG_GROUP_ADMIN", "ORG_ADMIN"), - "CASE_ADMIN": "ORG_ADMIN", - "CASE_MANAGER": "ORG_ADMIN", - "SECURITY": "ORG_ADMIN", - "CATERING": "ORG_ADMIN", - # These are restricted for now until better-defined - "CASE_ASSISTANT": "ADMIN", - "QUARTERMASTER": "ADMIN", - "JANITOR": "ADMIN", - "CHECKPOINT": "ADMIN", - } - - settings.auth.realm_entity = realm_entity - settings.auth.registration_roles = {None: ["STAFF"]} - settings.customise_auth_user_resource = auth_user_resource - - # ------------------------------------------------------------------------- - # ACT Settings and Customizations - from .customise.act import act_activity_resource, \ - act_activity_controller, \ - act_beneficiary_resource - - settings.customise_act_activity_resource = act_activity_resource - settings.customise_act_activity_controller = act_activity_controller - settings.customise_act_beneficiary_resource = act_beneficiary_resource - - # ------------------------------------------------------------------------- - # CMS Settings and Customizations - # - settings.cms.hide_index = True - settings.cms.newsletter_recipient_types = ("org_organisation",) - - from .customise.cms import cms_newsletter_resource, \ - cms_newsletter_controller, \ - cms_post_resource, \ - cms_post_controller - - settings.customise_cms_newsletter_resource = cms_newsletter_resource - settings.customise_cms_newsletter_controller = cms_newsletter_controller - settings.customise_cms_post_resource = cms_post_resource - settings.customise_cms_post_controller = cms_post_controller - - # ------------------------------------------------------------------------- - def counsel_home(): - - for item in ("error", "warning", "confirmation"): - current.session[item] = current.response.get(item) - - from gluon import redirect, URL - redirect(URL(c="counsel", f="person")) - - settings.customise_counsel_home = counsel_home - - # ------------------------------------------------------------------------- - # CR Settings - # - settings.cr.shelter_population_dynamic = True - settings.cr.shelter_units = True - settings.cr.shelter_blocked_capacity = True - - # Generate tasks for shelter inspections - settings.cr.shelter_inspection_tasks = True - settings.cr.shelter_inspection_task_active_statuses = (2, 3, 6) - - from .customise.cr import cr_shelter_resource, \ - cr_shelter_controller, \ - cr_shelter_unit_resource, \ - cr_shelter_unit_controller, \ - cr_shelter_registration_resource, \ - cr_shelter_registration_controller, \ - cr_shelter_registration_history_resource - - settings.customise_cr_shelter_resource = cr_shelter_resource - settings.customise_cr_shelter_controller = cr_shelter_controller - settings.customise_cr_shelter_unit_resource = cr_shelter_unit_resource - settings.customise_cr_shelter_unit_controller = cr_shelter_unit_controller - settings.customise_cr_shelter_registration_resource = cr_shelter_registration_resource - settings.customise_cr_shelter_registration_controller = cr_shelter_registration_controller - settings.customise_cr_shelter_registration_history_resource = cr_shelter_registration_history_resource - - # ------------------------------------------------------------------------- - # DOC Settings and Customizations - # - from .helpers import user_mailmerge_fields, shelter_mailmerge_fields - - settings.doc.mailmerge_fields = {"ID": "pe_label", - "Vorname": "first_name", - "Name": "last_name", - "Geburtsdatum": "date_of_birth", - "Land": "person_details.nationality", - "Registrierungsdatum": "dvr_case.date", - "Organisation": "dvr_case.organisation_id$name", - "BAMF-Az": "bamf.value", - "Auftraggeber-Az": "dvr_case.reference", - "Unterkunft": shelter_mailmerge_fields, - "Benutzername": "current_user.name", - "Benutzer": user_mailmerge_fields, - } - - from .customise.doc import doc_document_resource, \ - doc_document_controller, \ - doc_image_resource - - settings.customise_doc_document_resource = doc_document_resource - settings.customise_doc_document_controller = doc_document_controller - settings.customise_doc_image_resource = doc_image_resource - - # ------------------------------------------------------------------------- - # DVR Settings and Customizations - # - # Configure a regular expression pattern for ID Codes (QR Codes) - settings.dvr.id_code_pattern = "(?P