Enable features in Sahana config

This commit is contained in:
Disassembler 2017-09-16 10:51:10 +02:00
parent c6782e3557
commit c41e2bbdea

View File

@ -30,7 +30,7 @@ def config(settings):
#settings.base.theme = "default"
# Enable Guided Tours
settings.base.guided_tour = True
#settings.base.guided_tour = True
# Authentication settings
# These settings should be changed _after_ the 1st (admin) user is
@ -43,9 +43,9 @@ def config(settings):
#settings.auth.registration_requires_approval = True
# Allow a new user to be linked to a record (and a new record will be created if it doesn't already exist)
#settings.auth.registration_link_user_to = {"staff":T("Staff"),
# "volunteer":T("Volunteer"),
# "member":T("Member")}
settings.auth.registration_link_user_to = {"staff":T("Staff"),
"volunteer":T("Volunteer"),
"member":T("Member")}
# Always notify the approver of a new (verified) user, even if the user is automatically approved
#settings.auth.always_notify_approver = False
@ -55,19 +55,19 @@ def config(settings):
# Uncomment this to set the opt in default to True
#settings.auth.opt_in_default = True
# Uncomment this to request the Home Phone when a user registers
#settings.auth.registration_requests_home_phone = True
settings.auth.registration_requests_home_phone = True
# Uncomment this to request the Mobile Phone when a user registers
#settings.auth.registration_requests_mobile_phone = True
settings.auth.registration_requests_mobile_phone = True
# Uncomment this to have the Mobile Phone selection during registration be mandatory
#settings.auth.registration_mobile_phone_mandatory = True
# Uncomment this to request the Organisation when a user registers
#settings.auth.registration_requests_organisation = True
settings.auth.registration_requests_organisation = True
# Uncomment this to have the Organisation selection during registration be mandatory
#settings.auth.registration_organisation_required = True
settings.auth.registration_organisation_required = True
# Uncomment this to have the Organisation input hidden unless the user enters a non-whitelisted domain
#settings.auth.registration_organisation_hidden = True
# Uncomment this to default the Organisation during registration
#settings.auth.registration_organisation_default = "My Organisation"
settings.auth.registration_organisation_default = "My Organisation"
# Uncomment this to request the Organisation Group when a user registers
#settings.auth.registration_requests_organisation_group = True
# Uncomment this to have the Organisation Group selection during registration be mandatory
@ -84,11 +84,11 @@ def config(settings):
# The keys "organisation_id" and "site_id" can be used to indicate the user's "organisation_id" and "site_id"
#settings.auth.registration_roles = { 0: ["STAFF", "PROJECT_EDIT"]}
# Whether the first user to register for an Org should get the ORG_ADMIN role for that Org
#settings.auth.org_admin_to_first = True
settings.auth.org_admin_to_first = True
# Define which entity types to use as realm entities in role manager
#settings.auth.realm_entity_types = ("org_organisation",)
settings.auth.realm_entity_types = ("org_organisation",)
# Uncomment to activate entity role manager tabs for OrgAdmins
#settings.auth.entity_role_manager = True
settings.auth.entity_role_manager = True
# Define modules for entity role manager
#settings.auth.role_modules = OrderedDict([])
# Define access levels for entity role manager
@ -126,38 +126,11 @@ def config(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([
("ar", "العربية"),
("bs", "Bosanski"),
("cz", "Česky"),
("en", "English"),
("fr", "Français"),
("de", "Deutsch"),
("el", "ελληνικά"),
("es", "Español"),
("it", "Italiano"),
("ja", "日本語"),
("km", "ភាសាខ្មែរ"),
("ko", "한국어"),
("mn", "Монгол хэл"), # Mongolian
("my", "မြန်မာစာ"), # Burmese
("ne", "नेपाली"), # Nepali
("prs", "دری"), # Dari
("ps", "پښتو"), # Pashto
("pt", "Português"),
("pt-br", "Português (Brasil)"),
("ru", "русский"),
("tet", "Tetum"),
#("si", "සිංහල"), # Sinhala
#("ta", "தமிழ்"), # Tamil
#("th", "ภาษาไทย"), # Thai
("tl", "Tagalog"),
("tr", "Türkçe"),
("ur", "اردو"),
("vi", "Tiếng Việt"),
("zh-cn", "中文 (简体)"),
("zh-tw", "中文 (繁體)"),
])
# Default language for Language Toolbar (& GIS Locations in future)
#settings.L10n.default_language = "en"
settings.L10n.default_language = "cz"
# Uncomment to Hide the language toolbar
#settings.L10n.display_toolbar = False
# Default timezone for users
@ -169,23 +142,23 @@ def config(settings):
#settings.L10n.firstDOW = 0
# Number formats (defaults to ISO 31-0)
# Decimal separator for numbers (defaults to ,)
settings.L10n.decimal_separator = "."
#settings.L10n.decimal_separator = "."
# Thousands separator for numbers (defaults to space)
#settings.L10n.thousands_separator = ","
# Default Country Code for telephone numbers
#settings.L10n.default_country_code = 1
# Make last name in person/user records mandatory
#settings.L10n.mandatory_lastname = True
settings.L10n.mandatory_lastname = True
# Configure the list of Religions
#settings.L10n.religions = {"none": T("none"),
#"christian": T("Christian"),
#"muslim": T("Muslim"),
#"jewish": T("Jewish"),
#"buddhist": T("Buddhist"),
#"hindu": T("Hindu"),
#"bahai": T("Bahai"),
#"other": T("other")
#}
settings.L10n.religions = {"none": T("none"),
"christian": T("Christian"),
"muslim": T("Muslim"),
"jewish": T("Jewish"),
"buddhist": T("Buddhist"),
"hindu": T("Hindu"),
"bahai": T("Bahai"),
"other": T("other")
}
# Uncomment this to Translate CMS Series Names
#settings.L10n.translate_cms_series = True
# Uncomment this to Translate Layer Names
@ -200,12 +173,14 @@ def config(settings):
#settings.L10n.translate_org_site = True
# Finance settings
#settings.fin.currencies = {
# "EUR" : "Euros",
# "GBP" : "Great British Pounds",
# "USD" : "United States Dollars",
#}
#settings.fin.currency_default = "USD"
settings.fin.currencies = {
"BTC" : "BitCoin",
"CZK" : "Czech Koruna",
"EUR" : "Euros",
"GBP" : "Great British Pounds",
"USD" : "United States Dollars",
}
settings.fin.currency_default = "CZK"
#settings.fin.currency_writable = False # False currently breaks things
# PDF settings
@ -228,11 +203,11 @@ def config(settings):
# e.g. Activities filtered to those of parent Project
#settings.gis.countries = ("US",)
# Uncomment to pass Addresses imported from CSV to a Geocoder to try and automate Lat/Lon
#settings.gis.geocode_imported_addresses = "google"
settings.gis.geocode_imported_addresses = "google"
# Hide the Map-based selection tool in the Location Selector
#settings.gis.map_selector = False
# Show LatLon boxes in the Location Selector
#settings.gis.latlon_selector = True
settings.gis.latlon_selector = True
# Use Building Names as a separate field in Street Addresses?
#settings.gis.building_name = False
# Use a non-default fillColor for Clustered points
@ -268,7 +243,7 @@ def config(settings):
# Uncomment to use CMS to provide Metadata on Map Layers
#settings.gis.layer_metadata = True
# Uncomment to show Clear Layers tool
#settings.gis.clear_layers = True
settings.gis.clear_layers = True
# Uncomment to hide the Geolocation control
#settings.gis.geolocate_control = False
# Uncomment to hide the WMS GetFeatureInfo control
@ -286,7 +261,7 @@ def config(settings):
# Uncomment to have custom folders in the LayerTree use Radio Buttons
#settings.gis.layer_tree_radio = True
# Uncomment to display the Map Legend as a floating DIV
#settings.gis.legend = "float"
settings.gis.legend = "float"
# Uncomment to prevent showing LatLon in Location Represents
#settings.gis.location_represent_address_only = True
# Mouse Position: 'normal', 'mgrs' or None
@ -299,7 +274,7 @@ def config(settings):
#settings.gis.permalink = False
# Resources which can be directly added to the main map
#settings.gis.poi_create_resources = None
#settings.gis.poi_create_resources = [{"c":"event", "f":"incident_report", "table": "gis_poi", label": T("Add Incident Report") ,"tooltip": T("Add Incident Report"), "layer":"Incident Reports", "location": "popup"}]
settings.gis.poi_create_resources = [{"c":"event", "f":"incident_report", "table": "gis_poi", "label": T("Add Incident Report") ,"tooltip": T("Add Incident Report"), "layer":"Incident Reports", "location": "popup"}]
# PoIs to export in KML/OSM feeds from Admin locations
#settings.gis.poi_export_resources = ["cr_shelter", "hms_hospital", "org_office"]
# Uncomment to show the Print control:
@ -357,7 +332,7 @@ def config(settings):
# 7: Apply Controller, Function, Table ACLs and Entity Realm + Hierarchy
# 8: Apply Controller, Function, Table ACLs, Entity Realm + Hierarchy and Delegations
#
#settings.security.policy = 7 # Organisation-ACLs
settings.security.policy = 7 # Organisation-ACLs
# Ownership-rule for records without owner:
# True = not owned by any user (strict ownership, default)
@ -424,7 +399,7 @@ def config(settings):
# Uncomment to change the label/class of FilterForm clear buttons
#settings.ui.filter_clear = "Clear"
# Uncomment to include an Interim Save button on CRUD forms
#settings.ui.interim_save = True
settings.ui.interim_save = True
# Uncomment to enable icons on action buttons (requires corresponding CSS)
#settings.ui.use_button_icons = True
# Uncomment to use S3MultiSelectWidget on all dropdowns (currently the Auth Registration page & LocationSelectorWidget2 listen to this)
@ -435,7 +410,7 @@ def config(settings):
# stripes = False,
# )
# Uncomment to show a default cancel button in standalone create/update forms
#settings.ui.default_cancel_button = True
settings.ui.default_cancel_button = True
# Uncomment to disable responsive behavior of datatables
#settings.ui.datatables_responsive = False
# Uncomment to modify the label of the Permalink
@ -451,7 +426,7 @@ def config(settings):
# -------------------------------------------------------------------------
# CMS
# Uncomment this to hide CMS from module index pages
#settings.cms.hide_index = True
settings.cms.hide_index = True
# Uncomment to use Bookmarks in Newsfeed
#settings.cms.bookmarks = True
# Uncomment to use have Filter form in Newsfeed be open by default
@ -459,15 +434,15 @@ def config(settings):
# Uncomment to adjust filters in Newsfeed when clicking on locations instead of opening the profile page
#settings.cms.location_click_filters = True
# Uncomment to use Rich Text editor in Newsfeed
#settings.cms.richtext = True
settings.cms.richtext = True
# Uncomment to show Events in Newsfeed
#settings.cms.show_events = True
settings.cms.show_events = True
# Uncomment to hide Attachments in Newsfeed
#settings.cms.show_attachments = False
# Uncomment to show Links in Newsfeed
#settings.cms.show_links = True
settings.cms.show_links = True
# Uncomment to show Tags in Newsfeed
#settings.cms.show_tags = True
settings.cms.show_tags = True
# Uncomment to show post Titles in Newsfeed
#settings.cms.show_titles = True
# Uncomment to use organisation_id instead of created_by in Newsfeed
@ -485,7 +460,7 @@ def config(settings):
# Uncomment to disable people registration in shelters
#settings.cr.people_registration = False
# Uncomment to use Tags for Shelters
#settings.cr.tags = True
settings.cr.tags = True
# Uncomment to generate tasks from shelter inspections (requires project module)
#settings.cr.shelter_inspection_tasks = True
# Configure active statuses for shelter inspection tasks (subset of project.task_status_opts)
@ -562,7 +537,7 @@ def config(settings):
# Make Incident Types Hierarchical
#settings.event.incident_types_hierarchical = True
# Uncomment to allow the use of Exercise Events
#settings.event.exercise = True
settings.event.exercise = True
# Show tab for Event Dispatch
#settings.event.dispatch_tab = False
# Hide tab for Event Impacts
@ -574,25 +549,25 @@ def config(settings):
# Hide tab for Incident Dispatch
#settings.event.incident_dispatch_tab = False
# Show tab for Incident Impacts
#settings.event.incident_impact_tab = True
settings.event.incident_impact_tab = True
# Show tab for Incident Teams
#settings.event.incident_teams_tab = True
settings.event.incident_teams_tab = True
# -------------------------------------------------------------------------
# Members
# Hide Membership Types
#settings.member.membership_types = False
# Show a CV tab for Members
#settings.member.cv_tab = True
settings.member.cv_tab = True
# -------------------------------------------------------------------------
# Persons
# Uncomment to allow person imports to match even without email addresses
#settings.pr.import_update_requires_email = False
settings.pr.import_update_requires_email = False
# Uncomment this to enable support for third gender
#settings.pr.hide_third_gender = False
# Uncomment to a fuzzy search for duplicates in the new AddPersonWidget2
#settings.pr.lookup_duplicates = True
settings.pr.lookup_duplicates = True
# Uncomment to hide fields in S3AddPersonWidget[2]
#settings.pr.request_dob = False
#settings.pr.request_email = False
@ -600,9 +575,9 @@ def config(settings):
# Uncomment to show field in S3AddPersonWidget
#settings.pr.request_home_phone = True
# Uncomment to modify the order of Names
#settings.pr.name_format = "%(last_name)s, %(first_name)s %(middle_name)s"
settings.pr.name_format = "%(first_name)s %(middle_name)s %(last_name)s"
# Uncomment to prevent selecting existing users in the old S3AddPersonWidget
#settings.pr.select_existing = False
settings.pr.select_existing = False
# Uncomment to prevent showing HR details in S3PersonAutocompleteWidget results
#settings.pr.search_shows_hr_details = False
# Uncomment to hide Emergency Contacts in Person Contacts page
@ -610,45 +585,45 @@ def config(settings):
# Uncomment to hide the Address tab in person details
#settings.pr.use_address = False
# Show separate Public and Private Contacts Tabs
#settings.pr.contacts_tabs = ("public", "private")
settings.pr.contacts_tabs = ("public", "private")
# -------------------------------------------------------------------------
# Organisations
# Uncomment to use an Autocomplete for Organisation lookup fields
#settings.org.autocomplete = True
# Enable the Organisation Sector field
#settings.org.sector = True
settings.org.sector = True
# Enable the use of Organisation Branches
#settings.org.branches = True
settings.org.branches = True
# Show branches as tree rather than as table
#settings.org.branches_tree_view = True
settings.org.branches_tree_view = True
# Make Facility Types Hierarchical
#settings.org.facility_types_hierarchical = True
settings.org.facility_types_hierarchical = True
# Enable the use of Organisation Groups & what their name is
#settings.org.groups = "Coalition"
#settings.org.groups = "Network"
# Organisation Location context
#settings.org.organisation_location_context = "organisation_location.location_id"
settings.org.organisation_location_context = "organisation_location.location_id"
# Make Organisation Types Hierarchical
#settings.org.organisation_types_hierarchical = True
settings.org.organisation_types_hierarchical = True
# Make Organisation Types Multiple
#settings.org.organisation_types_multiple = True
settings.org.organisation_types_multiple = True
# Enable the use of Organisation Regions
#settings.org.regions = True
settings.org.regions = True
# Make Organisation Regions Hierarchical
#settings.org.regions_hierarchical = True
settings.org.regions_hierarchical = True
# Enable the use of Organisation Region Countries
#settings.org.region_countries = True
settings.org.region_countries = True
# Uncomment to show a Tab for Organisation Resources
#settings.org.resources_tab = True
settings.org.resources_tab = True
# Make Services Hierarchical
#settings.org.services_hierarchical = True
settings.org.services_hierarchical = True
# Set the length of the auto-generated org/site code the default is 10
#settings.org.site_code_len = 3
settings.org.site_code_len = 13
# Set the label for Sites
#settings.org.site_label = "Facility"
settings.org.site_label = "Facility"
# Uncomment to show the date when a Site (Facilities-only for now) was last contacted
#settings.org.site_last_contacted = True
settings.org.site_last_contacted = True
# Uncomment to use an Autocomplete for Site lookup fields
#settings.org.site_autocomplete = True
# Extra fields to search in Autocompletes & display in Representations
@ -656,9 +631,9 @@ def config(settings):
# Uncomment to hide inv & req tabs from Sites
#settings.org.site_inv_req_tabs = False
# Uncomment to allow Sites to be staffed by Volunteers
#settings.org.site_volunteers = True
settings.org.site_volunteers = True
# Uncomment to add summary fields for Organisations/Offices for # National/International staff
#settings.org.summary = True
settings.org.summary = True
# Enable certain fields just for specific Organisations
# Requires a call to settings.set_org_dependent_field(field)
# empty list => disabled for all (including Admin)
@ -678,53 +653,53 @@ def config(settings):
# Uncomment to make Facility codes unique
#settings.org.facility_code_unique = True
# Uncomment to use Tags for Organisations, Offices & Facilities
#settings.org.tags = True
settings.org.tags = True
# -------------------------------------------------------------------------
# Human Resource Management
# Uncomment to change the label for 'Staff'
#settings.hrm.staff_label = "Contacts"
settings.hrm.staff_label = "Contacts"
# Uncomment to allow Staff & Volunteers to be registered without an email address
#settings.hrm.email_required = False
# Uncomment to allow Staff & Volunteers to be registered without an Organisation
#settings.hrm.org_required = False
settings.hrm.org_required = False
# Uncomment to if their are only Staff & Volunteers from a single Organisation with no Branches
#settings.hrm.multiple_orgs = False
# Uncomment to disable the 'Send Message' action button
#settings.hrm.compose_button = False
# Uncomment to allow HR records to be deletable rather than just marking them as obsolete
#settings.hrm.deletable = True
settings.hrm.deletable = True
# Uncomment to hide Job Titles
#settings.hrm.use_job_titles = False
# Uncomment to allow HRs to have multiple Job Titles
#settings.hrm.multiple_job_titles = True
settings.hrm.multiple_job_titles = True
# Uncomment to have each root Org use a different Job Title Catalog
#settings.hrm.org_dependent_job_titles = True
settings.hrm.org_dependent_job_titles = True
# Uncomment to hide the Staff resource
#settings.hrm.show_staff = False
# Uncomment to have Staff use their Home Address as fallback if they have no Site defined
#settings.hrm.location_staff = ("site_id", "person_id")
settings.hrm.location_staff = ("site_id", "person_id")
# Uncomment to have Volunteers use their Site Address as fallback if they have no Home Address defined
#settings.hrm.location_vol = ("person_id", "site_id")
settings.hrm.location_vol = ("person_id", "site_id")
# Uncomment this to allow multiple site contacts per site (e.g. if needing a separate contact per sector)
#settings.hrm.site_contact_unique = False
settings.hrm.site_contact_unique = False
# Uncomment to allow hierarchical categories of Skills, which each need their own set of competency levels.
#settings.hrm.skill_types = True
settings.hrm.skill_types = True
# Uncomment to disable Staff experience
#settings.hrm.staff_experience = False
# Uncomment to enable Volunteer 'active' field
# - can also be made a function which is called to calculate the status based on recorded hours
# Custom label for Organisations in HR module
#settings.hrm.organisation_label = "Organization / Branch"
settings.hrm.organisation_label = "Organization / Branch"
# Custom label for Top-level Organisations in HR module
#settings.hrm.root_organisation_label = "Organization"
#settings.hrm.vol_active = True
settings.hrm.root_organisation_label = "Organization"
settings.hrm.vol_active = True
# Uncomment to define a Tooltip to show when viewing the Volunteer 'active' field
#settings.hrm.vol_active_tooltip = "A volunteer is defined as active if they've participated in an average of 8 or more hours of Program work or Trainings per month in the last year"
settings.hrm.vol_active_tooltip = "A volunteer is defined as active if they've participated in an average of 8 or more hours of Program work or Trainings per month in the last year"
# Uncomment to disable Volunteer experience
#settings.hrm.vol_experience = False
# Uncomment to show the Organisation name in HR represents
#settings.hrm.show_organisation = True
settings.hrm.show_organisation = True
# Uncomment to consolidate tabs into a single CV
#settings.hrm.cv_tab = True
# Uncomment to consolidate tabs into Staff Record (set to False to hide the tab)
@ -738,7 +713,7 @@ def config(settings):
# Uncomment to auto-create certificates for courses
#settings.hrm.create_certificates_from_courses = True
# Uncomment to enable the use of Staff/Volunteer IDs
#settings.hrm.use_code = True
settings.hrm.use_code = True
# Uncomment to disable the use of HR Credentials
#settings.hrm.use_credentials = False
# Uncomment to disable the use of HR Description
@ -762,7 +737,7 @@ def config(settings):
# Uncomment this to modify the training filter to be AND not OR
#settings.hrm.training_filter_and = True
# Uncomment this to have Pass marks defined by Course
#settings.hrm.course_pass_marks = True
settings.hrm.course_pass_marks = True
# Uncomment to use activity types in experience record, specify as {"code":"label", ...}
#settings.hrm.activity_types = {"rdrt": "RDRT Mission"}
@ -774,23 +749,23 @@ def config(settings):
# Uncomment if you need a simpler (but less accountable) process for managing stock levels
#settings.inv.direct_stock_edits = True
# Uncomment to have Warehouse Types be Organisation-dependent
#settings.inv.org_dependent_warehouse_types = True
settings.inv.org_dependent_warehouse_types = True
# Uncomment to call Stock Adjustments, 'Stock Counts'
#settings.inv.stock_count = True
settings.inv.stock_count = True
# Use the term 'Order' instead of 'Shipment'
#settings.inv.shipment_name = "order"
settings.inv.shipment_name = "order"
# Uncomment to validate for Unique Warehouse Codes
#settings.inv.warehouse_code_unique = True
# Uncomment to not track pack values
#settings.inv.track_pack_values = False
#settings.inv.show_mode_of_transport = True
#settings.inv.send_show_org = False
#settings.inv.send_show_time_in = True
#settings.inv.send_form_name = "Tally Out Sheet"
#settings.inv.send_short_name = "TO"
#settings.inv.send_ref_field_name = "Tally Out Number"
#settings.inv.recv_form_name = "Acknowledgement Receipt for Donations Received Form"
#settings.inv.recv_shortname = "ARDR"
settings.inv.show_mode_of_transport = True
settings.inv.send_show_org = False
settings.inv.send_show_time_in = True
settings.inv.send_form_name = "Tally Out Sheet"
settings.inv.send_short_name = "TO"
settings.inv.send_ref_field_name = "Tally Out Number"
settings.inv.recv_form_name = "Acknowledgement Receipt for Donations Received Form"
settings.inv.recv_shortname = "ARDR"
# Types common to both Send and Receive
#settings.inv.shipment_types = {
# 0: T("-"),
@ -848,7 +823,7 @@ def config(settings):
# Uncomment to disable the Commit step in the workflow & simply move direct to Ship
#settings.req.use_commit = False
# Uncomment to have Donations include a 'Value' field
#settings.req.commit_value = True
settings.req.commit_value = True
# Uncomment to allow Donations to be made without a matching Request
#settings.req.commit_without_request = True
# Uncomment to Commit Named People rather than simply Anonymous Skills
@ -858,7 +833,7 @@ def config(settings):
# Should Requests ask whether Security is required?
#settings.req.ask_security = True
# Should Requests ask whether Transportation is required?
#settings.req.ask_transport = True
settings.req.ask_transport = True
#settings.req.use_req_number = False
#settings.req.generate_req_number = False
#settings.req.req_form_name = "Request Issue Form"
@ -868,38 +843,38 @@ def config(settings):
# all types will be valid.
#settings.req.req_type = ("Stock",)
# Uncomment to enable Summary 'Site Needs' tab for Offices/Facilities
#settings.req.summary = True
settings.req.summary = True
# Uncomment to restrict adding new commits to Completed commits
#settings.req.req_restrict_on_complete = True
# Custom Crud Strings for specific req_req types
#settings.req.req_crud_strings = dict()
#ADD_ITEM_REQUEST = T("Make a Request for Donations")
settings.req.req_crud_strings = dict()
ADD_ITEM_REQUEST = T("Make a Request for Donations")
# req_req Crud Strings for Item Request (type=1)
#settings.req.req_crud_strings[1] = Storage(
# label_create = ADD_ITEM_REQUEST,
# title_display = T("Request for Donations Details"),
# title_list = T("Requests for Donations"),
# title_update = T("Edit Request for Donations"),
# label_list_button = T("List Requests for Donations"),
# label_delete_button = T("Delete Request for Donations"),
# msg_record_created = T("Request for Donations Added"),
# msg_record_modified = T("Request for Donations Updated"),
# msg_record_deleted = T("Request for Donations Canceled"),
# msg_list_empty = T("No Requests for Donations"))
#ADD_PEOPLE_REQUEST = T("Make a Request for Volunteers")
settings.req.req_crud_strings[1] = Storage(
label_create = ADD_ITEM_REQUEST,
title_display = T("Request for Donations Details"),
title_list = T("Requests for Donations"),
title_update = T("Edit Request for Donations"),
label_list_button = T("List Requests for Donations"),
label_delete_button = T("Delete Request for Donations"),
msg_record_created = T("Request for Donations Added"),
msg_record_modified = T("Request for Donations Updated"),
msg_record_deleted = T("Request for Donations Canceled"),
msg_list_empty = T("No Requests for Donations"))
ADD_PEOPLE_REQUEST = T("Make a Request for Volunteers")
# req_req Crud Strings for People Request (type=3)
#settings.req.req_crud_strings[3] = Storage(
# label_create = ADD_PEOPLE_REQUEST,
# title_display = T("Request for Volunteers Details"),
# title_list = T("Requests for Volunteers"),
# title_update = T("Edit Request for Volunteers"),
# label_list_button = T("List Requests for Volunteers"),
# label_delete_button = T("Delete Request for Volunteers"),
# msg_record_created = T("Request for Volunteers Added"),
# msg_record_modified = T("Request for Volunteers Updated"),
# msg_record_deleted = T("Request for Volunteers Canceled"),
# msg_list_empty = T("No Requests for Volunteers"))
settings.req.req_crud_strings[3] = Storage(
label_create = ADD_PEOPLE_REQUEST,
title_display = T("Request for Volunteers Details"),
title_list = T("Requests for Volunteers"),
title_update = T("Edit Request for Volunteers"),
label_list_button = T("List Requests for Volunteers"),
label_delete_button = T("Delete Request for Volunteers"),
msg_record_created = T("Request for Volunteers Added"),
msg_record_modified = T("Request for Volunteers Updated"),
msg_record_deleted = T("Request for Volunteers Canceled"),
msg_list_empty = T("No Requests for Volunteers"))
# -------------------------------------------------------------------------
# Supply
@ -910,19 +885,19 @@ def config(settings):
# -------------------------------------------------------------------------
# Projects
# Uncomment this to use settings suitable for a global/regional organisation (e.g. DRR)
#settings.project.mode_3w = True
settings.project.mode_3w = True
# Uncomment this to use DRR (Disaster Risk Reduction) extensions
#settings.project.mode_drr = True
settings.project.mode_drr = True
# Uncomment this to use settings suitable for detailed Task management
#settings.project.mode_task = True
settings.project.mode_task = True
# Uncomment this to use link Projects to Events
#settings.project.event_projects = True
settings.project.event_projects = True
# Uncomment this to use Activities for Projects & Tasks
#settings.project.activities = True
settings.project.activities = True
# Uncomment this to use link Activities to Events
#settings.project.event_activities = True
settings.project.event_activities = True
# Uncomment this to use Activity Types for Activities & Projects
#settings.project.activity_types = True
settings.project.activity_types = True
# Uncomment this to filter dates in Activities
#settings.project.activity_filter_year = True
# Uncomment this to use Codes for projects
@ -930,31 +905,31 @@ def config(settings):
# Uncomment this to call project locations 'Communities'
#settings.project.community = True
# Uncomment this to enable Demographics in 3W projects
#settings.project.demographics = True
settings.project.demographics = True
# Uncomment this to enable Hazards in 3W projects
#settings.project.hazards = True
settings.project.hazards = True
# Uncomment this to enable Indicators in projects
#settings.project.indicators = True
settings.project.indicators = True
# Uncomment this to enable Milestones in projects
#settings.project.milestones = True
settings.project.milestones = True
# Uncomment this to use Projects for Activities & Tasks
#settings.project.projects = True
settings.project.projects = True
# Uncomment this to disable Sectors in projects
#settings.project.sectors = False
# Uncomment this to enable Programmes in projects
#settings.project.programmes = True
settings.project.programmes = True
# Uncomment this to enable Budgets in Programmes
#settings.project.programme_budget = True
settings.project.programme_budget = True
# Uncomment this to use Tags in Tasks
#settings.project.task_tag = True
settings.project.task_tag = True
# Uncomment this to enable Themes in 3W projects
#settings.project.themes = True
settings.project.themes = True
# Uncomment this to use Theme Percentages for projects
#settings.project.theme_percentages = True
settings.project.theme_percentages = True
# Uncomment this to use multiple Budgets per project
#settings.project.multiple_budgets = True
settings.project.multiple_budgets = True
# Uncomment this to use multiple Organisations per project
#settings.project.multiple_organisations = True
settings.project.multiple_organisations = True
# Uncomment this to customise
# Links to Filtered Components for Donors & Partners
#settings.project.organisation_roles = {
@ -1074,7 +1049,7 @@ def config(settings):
#description = "Central point to record details on People",
restricted = True,
access = "|1|", # Only Administrators can see this module in the default menu (access to controller is possible to all still)
module_type = 10
module_type = 9
)),
("org", Storage(
name_nice = T("Organizations"),
@ -1099,13 +1074,13 @@ def config(settings):
name_nice = T("Content Management"),
#description = "Content Management System",
restricted = True,
module_type = 10,
module_type = 9,
)),
("doc", Storage(
name_nice = T("Documents"),
#description = "A library of digital resources, such as photos, documents and reports",
restricted = True,
module_type = 10,
module_type = 9,
)),
("msg", Storage(
name_nice = T("Messaging"),
@ -1143,13 +1118,13 @@ def config(settings):
name_nice = T("Vehicles"),
#description = "Manage Vehicles",
restricted = True,
module_type = 10,
module_type = 9,
)),
("req", Storage(
name_nice = T("Requests"),
#description = "Manage requests for supplies, assets, staff or other resources. Matches against Inventories where supplies are requested.",
restricted = True,
module_type = 10,
module_type = 9,
)),
("project", Storage(
name_nice = T("Projects"),
@ -1173,13 +1148,13 @@ def config(settings):
name_nice = T("Shelters"),
#description = "Tracks the location, capacity and breakdown of victims in Shelters",
restricted = True,
module_type = 10
module_type = 9
)),
("hms", Storage(
name_nice = T("Hospitals"),
#description = "Helps to monitor status of hospitals",
restricted = True,
module_type = 10
module_type = 9
)),
#("disease", Storage(
# name_nice = T("Disease Tracking"),
@ -1222,12 +1197,12 @@ def config(settings):
restricted = True,
module_type = 10
)),
#("deploy", Storage(
# name_nice = T("Deployments"),
# #description = "Manage Deployments",
# restricted = True,
# module_type = 10,
#)),
("deploy", Storage(
name_nice = T("Deployments"),
#description = "Manage Deployments",
restricted = True,
module_type = 10,
)),
# Deprecated: Replaced by event
#("irs", Storage(
# name_nice = T("Incidents"),
@ -1235,74 +1210,74 @@ def config(settings):
# restricted = True,
# module_type = 10
#)),
#("dvi", Storage(
# name_nice = T("Disaster Victim Identification"),
# #description = "Disaster Victim Identification",
# restricted = True,
# module_type = 10,
# #access = "|DVI|", # Only users with the DVI role can see this module in the default menu & access the controller
#)),
#("edu", Storage(
# name_nice = T("Schools"),
# #description = "Helps to monitor status of schools",
# restricted = True,
# module_type = 10
#)),
#("mpr", Storage(
# name_nice = T("Missing Person Registry"),
# #description = "Helps to report and search for missing persons",
# restricted = True,
# module_type = 10,
#)),
#("scenario", Storage(
# name_nice = T("Scenarios"),
# #description = "Define Scenarios for allocation of appropriate Resources (Human, Assets & Facilities).",
# restricted = True,
# module_type = 10,
#)),
#("vulnerability", Storage(
# name_nice = T("Vulnerability"),
# #description = "Manages vulnerability indicators",
# restricted = True,
# module_type = 10,
# )),
#("fire", Storage(
# name_nice = T("Fire Stations"),
# #description = "Fire Station Management",
# restricted = True,
# module_type = 1,
#)),
#("water", Storage(
# name_nice = T("Water"),
# #description = "Flood Gauges show water levels in various parts of the country",
# restricted = True,
# module_type = 10
#)),
#("patient", Storage(
# name_nice = T("Patient Tracking"),
# #description = "Tracking of Patients",
# restricted = True,
# module_type = 10
#)),
#("po", Storage(
# name_nice = T("Population Outreach"),
# #description = "Population Outreach",
# restricted = True,
# module_type = 10
#)),
#("security", Storage(
# name_nice = T("Security"),
# #description = "Security Management System",
# restricted = True,
# module_type = 10,
#)),
("dvi", Storage(
name_nice = T("Disaster Victim Identification"),
#description = "Disaster Victim Identification",
restricted = True,
module_type = 10,
#access = "|DVI|", # Only users with the DVI role can see this module in the default menu & access the controller
)),
("edu", Storage(
name_nice = T("Schools"),
#description = "Helps to monitor status of schools",
restricted = True,
module_type = 10
)),
("mpr", Storage(
name_nice = T("Missing Person Registry"),
#description = "Helps to report and search for missing persons",
restricted = True,
module_type = 10,
)),
("scenario", Storage(
name_nice = T("Scenarios"),
#description = "Define Scenarios for allocation of appropriate Resources (Human, Assets & Facilities).",
restricted = True,
module_type = 10,
)),
("vulnerability", Storage(
name_nice = T("Vulnerability"),
#description = "Manages vulnerability indicators",
restricted = True,
module_type = 10,
)),
("fire", Storage(
name_nice = T("Fire Stations"),
#description = "Fire Station Management",
restricted = True,
module_type = 1,
)),
("water", Storage(
name_nice = T("Water"),
#description = "Flood Gauges show water levels in various parts of the country",
restricted = True,
module_type = 10
)),
("patient", Storage(
name_nice = T("Patient Tracking"),
#description = "Tracking of Patients",
restricted = True,
module_type = 10
)),
("po", Storage(
name_nice = T("Population Outreach"),
#description = "Population Outreach",
restricted = True,
module_type = 10
)),
("security", Storage(
name_nice = T("Security"),
#description = "Security Management System",
restricted = True,
module_type = 10,
)),
# These are specialist modules
#("cap", Storage(
# name_nice = T("CAP"),
# #description = "Create & broadcast CAP alerts",
# restricted = True,
# module_type = 10,
#)),
("cap", Storage(
name_nice = T("CAP"),
#description = "Create & broadcast CAP alerts",
restricted = True,
module_type = 10,
)),
# Requires RPy2 & PostgreSQL
#("climate", Storage(
# name_nice = T("Climate"),
@ -1310,12 +1285,12 @@ def config(settings):
# restricted = True,
# module_type = 10,
#)),
#("delphi", Storage(
# name_nice = T("Delphi Decision Maker"),
# #description = "Supports the decision making of large groups of Crisis Management Experts by helping the groups create ranked list.",
# restricted = False,
# module_type = 10,
#)),
("delphi", Storage(
name_nice = T("Delphi Decision Maker"),
#description = "Supports the decision making of large groups of Crisis Management Experts by helping the groups create ranked list.",
restricted = False,
module_type = 10,
)),
# @ToDo: Port these Assessments to the Survey module
#("building", Storage(
# name_nice = T("Building Assessments"),
@ -1331,24 +1306,24 @@ def config(settings):
# restricted = True,
# module_type = 10,
#)),
#("impact", Storage(
# name_nice = T("Impacts"),
# #description = "Used by Assess",
# restricted = True,
# module_type = None,
#)),
#("ocr", Storage(
# name_nice = T("Optical Character Recognition"),
# #description = "Optical Character Recognition for reading the scanned handwritten paper forms.",
# restricted = False,
# module_type = None,
#)),
#("work", Storage(
# name_nice = T("Jobs"),
# #description = "Simple Volunteer Jobs Management",
# restricted = False,
# module_type = None,
#)),
("impact", Storage(
name_nice = T("Impacts"),
#description = "Used by Assess",
restricted = True,
module_type = None,
)),
("ocr", Storage(
name_nice = T("Optical Character Recognition"),
#description = "Optical Character Recognition for reading the scanned handwritten paper forms.",
restricted = False,
module_type = None,
)),
("work", Storage(
name_nice = T("Jobs"),
#description = "Simple Volunteer Jobs Management",
restricted = False,
module_type = None,
)),
])
# END =========================================================================