diff --git a/lxc-apps/sahana-demo/install/sahana_conf/000_config.py b/lxc-apps/sahana-demo/install/sahana_conf/000_config.py index ac2a261..0344a50 100644 --- a/lxc-apps/sahana-demo/install/sahana_conf/000_config.py +++ b/lxc-apps/sahana-demo/install/sahana_conf/000_config.py @@ -68,8 +68,8 @@ settings.base.debug = True # Uncomment this to prevent automated test runs from remote # settings.base.allow_testing = False -# Configure the log level ("DEBUG", "INFO", "WARNING", "ERROR" or "CRITICAL"), None = turn off logging -#settings.log.level = "WARNING" +# Configure the log level ("DEBUG", "INFO", "WARNING", "ERROR" or "CRITICAL"), None = turn off logging (default) +#settings.log.level = "ERROR" # DEBUG set automatically when base.debug is True # Uncomment to prevent writing log messages to the console (sys.stderr) #settings.log.console = False # Configure a log file (file name) @@ -87,6 +87,9 @@ settings.base.debug = True # - should happen automatically if installing using supported scripts settings.auth.hmac_key = "${SAHANADEMO_HMAC}" +# If using Masterkey Authentication, then set this to a deployment-specific 32 char string: +#settings.auth.masterkey_app_key = "randomstringrandomstringrandomstring" + # Minimum Password Length #settings.auth.password_min_length = 8 @@ -103,7 +106,7 @@ settings.mail.server = "host:25" settings.mail.sender = "admin@example.com" # Default email address to which requests to approve new user accounts gets sent # This can be overridden for specific domains/organisations via the auth_domain table -#settings.mail.approver = "useradmin@example.org" +settings.mail.approver = "admin@example.com" # Daily Limit on Sending of emails #settings.mail.limit = 1000 @@ -215,10 +218,8 @@ settings.base.session_db = True # See http://alerting.worldweather.org/ for oid # Country root oid. The oid for the organisation includes this base #settings.cap.identifier_oid = "2.49.0.0.608.0" -# Change this for the offset period in days that the alert will be effective for -# Expire Date = Effective Date + expire_offset -# Default is 2 days -#settings.cap.expire_offset = 2 +# Set the period (in days) after which alert info segments expire (default=2) +#settings.cap.info_effective_period = 2 # ============================================================================= # Import the settings from the Template @@ -238,6 +239,7 @@ settings.import_template() #settings.L10n.default_language = "en" #settings.security.policy = 7 # Organisation-ACLs # Enable Additional Module(s) +#from gluon.storage import Storage #settings.modules["delphi"] = Storage( # name_nice = T("Delphi Decision Maker"), # restricted = False, diff --git a/lxc-apps/sahana/install/sahana_conf/000_config.py b/lxc-apps/sahana/install/sahana_conf/000_config.py index 01dfa30..943356d 100644 --- a/lxc-apps/sahana/install/sahana_conf/000_config.py +++ b/lxc-apps/sahana/install/sahana_conf/000_config.py @@ -68,8 +68,8 @@ settings.base.debug = True # Uncomment this to prevent automated test runs from remote # settings.base.allow_testing = False -# Configure the log level ("DEBUG", "INFO", "WARNING", "ERROR" or "CRITICAL"), None = turn off logging -#settings.log.level = "WARNING" +# Configure the log level ("DEBUG", "INFO", "WARNING", "ERROR" or "CRITICAL"), None = turn off logging (default) +#settings.log.level = "ERROR" # DEBUG set automatically when base.debug is True # Uncomment to prevent writing log messages to the console (sys.stderr) #settings.log.console = False # Configure a log file (file name) @@ -87,6 +87,9 @@ settings.base.debug = True # - should happen automatically if installing using supported scripts settings.auth.hmac_key = "${SAHANA_HMAC}" +# If using Masterkey Authentication, then set this to a deployment-specific 32 char string: +#settings.auth.masterkey_app_key = "randomstringrandomstringrandomstring" + # Minimum Password Length #settings.auth.password_min_length = 8 @@ -219,10 +222,8 @@ settings.base.session_db = True # See http://alerting.worldweather.org/ for oid # Country root oid. The oid for the organisation includes this base #settings.cap.identifier_oid = "2.49.0.0.608.0" -# Change this for the offset period in days that the alert will be effective for -# Expire Date = Effective Date + expire_offset -# Default is 2 days -#settings.cap.expire_offset = 2 +# Set the period (in days) after which alert info segments expire (default=2) +#settings.cap.info_effective_period = 2 # ============================================================================= # Import the settings from the Template @@ -242,6 +243,7 @@ settings.import_template() #settings.L10n.default_language = "en" #settings.security.policy = 7 # Organisation-ACLs # Enable Additional Module(s) +#from gluon.storage import Storage #settings.modules["delphi"] = Storage( # name_nice = T("Delphi Decision Maker"), # restricted = False, diff --git a/lxc-apps/sahana/install/sahana_conf/00_settings.py b/lxc-apps/sahana/install/sahana_conf/00_settings.py index 009e3a7..5610291 100644 --- a/lxc-apps/sahana/install/sahana_conf/00_settings.py +++ b/lxc-apps/sahana/install/sahana_conf/00_settings.py @@ -88,6 +88,7 @@ s3.stylesheets = [] s3.external_stylesheets = [] # To get included at the end of
s3.scripts = [] +s3.scripts_modules = [] s3.js_global = [] s3.jquery_ready = [] @@ -194,20 +195,23 @@ _settings.allow_basic_login = True _settings.logout_onlogout = s3_auth_on_logout _settings.login_onaccept = s3_auth_on_login -_settings.login_next = settings.get_auth_login_next() +# Now read in auth.login() to avoid setting unneccesarily in every request +#_settings.login_next = settings.get_auth_login_next() if settings.has_module("vol") and \ settings.get_auth_registration_volunteer(): _settings.register_next = URL(c="vol", f="person") # Languages available in User Profiles -if len(s3.l10n_languages) > 1: - _settings.table_user.language.requires = IS_IN_SET(s3.l10n_languages, - zero=None) -else: - field = _settings.table_user.language - field.default = s3.l10n_languages.keys()[0] - field.readable = False - field.writable = False +#if len(s3.l10n_languages) > 1: +# _settings.table_user.language.requires = s3base.IS_ISO639_2_LANGUAGE_CODE(sort = True, +# translate = True, +# zero = None, +# ) +#else: +# field = _settings.table_user.language +# field.default = s3.l10n_languages.keys()[0] +# field.readable = False +# field.writable = False _settings.lock_keys = True @@ -241,14 +245,14 @@ session.information = [] session.warning = [] # Shortcuts for system role IDs, see modules/s3aaa.py/AuthS3 -system_roles = auth.get_system_roles() -ADMIN = system_roles.ADMIN -AUTHENTICATED = system_roles.AUTHENTICATED -ANONYMOUS = system_roles.ANONYMOUS -EDITOR = system_roles.EDITOR -MAP_ADMIN = system_roles.MAP_ADMIN -ORG_ADMIN = system_roles.ORG_ADMIN -ORG_GROUP_ADMIN = system_roles.ORG_GROUP_ADMIN +#system_roles = auth.get_system_roles() +#ADMIN = system_roles.ADMIN +#AUTHENTICATED = system_roles.AUTHENTICATED +#ANONYMOUS = system_roles.ANONYMOUS +#EDITOR = system_roles.EDITOR +#MAP_ADMIN = system_roles.MAP_ADMIN +#ORG_ADMIN = system_roles.ORG_ADMIN +#ORG_GROUP_ADMIN = system_roles.ORG_GROUP_ADMIN if s3.debug: # Add the developer toolbar from modules/s3/s3utils.py @@ -261,15 +265,15 @@ s3_formstyle = settings.get_ui_formstyle() s3_formstyle_read = settings.get_ui_formstyle_read() s3_formstyle_mobile = s3_formstyle submit_button = T("Save") -_crud = s3.crud -_crud.formstyle = s3_formstyle -_crud.formstyle_read = s3_formstyle_read -_crud.submit_button = submit_button +s3_crud = s3.crud +s3_crud.formstyle = s3_formstyle +s3_crud.formstyle_read = s3_formstyle_read +s3_crud.submit_button = submit_button # Optional class for Submit buttons -#_crud.submit_style = "submit-button" -_crud.confirm_delete = T("Do you really want to delete these records?") -_crud.archive_not_delete = settings.get_security_archive_not_delete() -_crud.navigate_away_confirm = settings.get_ui_navigate_away_confirm() +#s3_crud.submit_style = "submit-button" +s3_crud.confirm_delete = T("Do you really want to delete these records?") +s3_crud.archive_not_delete = settings.get_security_archive_not_delete() +s3_crud.navigate_away_confirm = settings.get_ui_navigate_away_confirm() # Content Type Headers, default is application/xml for XML formats # and text/x-json for JSON formats, other content types must be diff --git a/lxc-apps/sahana/install/sahana_data/Spotter/config.py b/lxc-apps/sahana/install/sahana_data/Spotter/config.py index d952e3c..3bf808f 100644 --- a/lxc-apps/sahana/install/sahana_data/Spotter/config.py +++ b/lxc-apps/sahana/install/sahana_data/Spotter/config.py @@ -20,6 +20,9 @@ def config(settings): # In Production, prepopulate = 0 (to save 1x DAL hit every page) settings.base.prepopulate.append("Spotter") + # Uncomment this to prefer scalability-optimized strategies globally + #settings.base.bigtable = True + # Theme (folder to use for views/layout.html) #settings.base.theme = "default" @@ -35,6 +38,8 @@ def config(settings): #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 + # Disable welcome-emails to newly registered users + #settings.auth.registration_welcome_email = False # 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"), @@ -72,8 +77,6 @@ def config(settings): #settings.auth.registration_requests_site = True # Uncomment this to allow Admin to see Organisations in User Admin even if the Registration doesn't request this #settings.auth.admin_sees_organisation = True - # Uncomment to hide the UTC Offset in Registration/Profile - #settings.auth.show_utc_offset = False # Uncomment to set the default role UUIDs assigned to newly-registered users # This is a dictionary of lists, where the key is the realm that the list of roles applies to # The key 0 implies not realm restricted @@ -104,14 +107,20 @@ def config(settings): # https://termsfeed.com/terms-conditions/generator/ # uses /views/tos.html settings.auth.terms_of_service = True + # Enable options for tracking user consent + settings.auth.consent_tracking = True # Uncomment this to allow users to Login using Gmail's SMTP #settings.auth.gmail_domains = ["gmail.com"] # Uncomment this to allow users to Login using Office365's SMTP #settings.auth.office365_domains = ["microsoft.com"] # Uncomment this to allow users to Login using OpenID #settings.auth.openid = True + # Uncomment this to allow users to login using master key + #settings.auth.masterkey = True # Uncomment this to block password changes since managed externally (OpenID / SMTP / LDAP) - #settings.auth.password_changes = True + #settings.auth.password_changes = False + # Uncomment this to disable password retrieval (e.g. if impractical or unsafe) + #settings.auth.password_retrieval = False # Uncomment this to enable presence records on login based on HTML5 geolocations #settings.auth.set_presence_on_login = True # Uncomment this and specify a list of location levels to be ignored by presence records @@ -120,7 +129,7 @@ def config(settings): #settings.auth.create_unknown_locations = True # L10n settings - # Languages used in the deployment (used for Language Toolbar & GIS Locations) + # Languages used in the deployment (used for Language Toolbar, GIS Locations, etc) # http://www.loc.gov/standards/iso639-2/php/code_list.php languages = OrderedDict([ ("cs", "Czech"), @@ -133,7 +142,7 @@ def config(settings): # Uncomment to Hide the language toolbar #settings.L10n.display_toolbar = False # Default timezone for users - #settings.L10n.utc_offset = "+0000" + settings.L10n.timezone = "Europe/Prague" # Uncomment these to use US-style dates in English #settings.L10n.date_format = "%m-%d-%Y" #settings.L10n.time_format = "%H:%M:%S" @@ -185,10 +194,14 @@ def config(settings): #settings.fin.currency_writable = False # False currently breaks things # PDF settings - # Default page size for reports (defaults to A4) - #settings.base.paper_size = T("Letter") + # Default page size (defaults to A4) + #settings.base.pdf_size = "Letter" + # Default page orientation (defaults to "Auto" to auto-adapt for wide tables) + #settings.base.pdf_orientation = "Landscape" # Location of Logo used in pdfs headers #settings.ui.pdf_logo = "static/img/mylogo.png" + # Maximum number of records in PDF exports (None for unlimited) + #settings.base.pdf_max_rows = 1000 #Uncomment to add a title row to XLS exports #settings.base.xls_title_row = True @@ -263,6 +276,8 @@ def config(settings): #settings.gis.layer_tree_radio = True # Uncomment to display the Map Legend as a floating DIV settings.gis.legend = "float" + # Uncomment to use scalability-optimized options lookups in location filters + #settings.gis.location_filter_bigtable_lookups = True # Uncomment to prevent showing LatLon in Location Represents #settings.gis.location_represent_address_only = True # Mouse Position: 'normal', 'mgrs' or None @@ -414,10 +429,18 @@ def config(settings): settings.ui.default_cancel_button = True # Uncomment to disable responsive behavior of datatables #settings.ui.datatables_responsive = False + # Uncomment to enable double scroll bars on non-responsive datatables + #settings.ui.datatables_double_scroll = True # Uncomment to modify the label of the Permalink #settings.ui.label_permalink = "Permalink" # Uncomment to modify the main menu logo #settings.ui.menu_logo = URL(c="static", f="img", args=["S3menulogo.png"]) + # Configure business hours to indicate in organizer (can be a list) + #settings.ui.organizer_business_hours = {"dow": [1,2,3,4,5], "start": "08:00", "end": "18:00"} + # Configure a time format for organizer events to override locale default + #settings.ui.organizer_time_format = "H:mm" + # Configure the snap raster width in organizer (hh:mm:ss) + #settings.ui.organizer_snap_duration = "00:15:00" # ------------------------------------------------------------------------- # Sync @@ -429,6 +452,115 @@ def config(settings): # Uncomment to have a specific asset type for Telephones settings.asset.telephones = True + # ------------------------------------------------------------------------- + # Beneficiary Registry + + # --- Terminology --- + # Terminology to use when referring to cases (Beneficiary|Client|Case) + #settings.br.case_terminology = "Beneficiary" + # Terminology to use when referring to measures of assistance (Counseling|Assistance) + #settings.br.assistance_terminology = "Counseling" + + # --- Need Categories --- + # Use hierarchical need categories + #settings.br.needs_hierarchical = True + # Let all orgs use a common set of need categories + #settings.br.needs_org_specific = False + + # --- Basic Case Options --- + # Show the case organisation even if only one option + #settings.br.case_hide_default_org = False + # Disable assignment of cases to staff + #settings.br.case_manager = False + # Expose fields to track home address in case file + #settings.br.case_address = True + # Disable documentation of language details in case file + #settings.br.case_language_details = False + # Control household size tracking in case files: False, True or "auto" (=default) + #settings.br.household_size = "auto" + # Layout class for beneficiary ID cards + #settings.br.id_card_layout = IDCardLayout + # User roles with permission to export beneficiary ID cards + #settings.br.id_card_export_roles = ["ORG_ADMIN", "CASE_MANAGEMENT"] + + # --- Case File Tabs --- + # Hide the contact info tab in case files + #settings.br.case_contacts_tab = False + # Show the ID-tab in case files + #settings.br.case_id_tab = True + # Hide the family members tab in case files + #settings.br.case_family_tab = False + # Enable case file tab to track service contacts + #settings.br.service_contacts = True + # Show tab with notes journal + #settings.br.case_notes_tab = True + # Show the photos-tab in case files + #settings.br.case_photos_tab = True + # Hide the documents-tab in case files + #settings.br.case_documents_tab = False + + # --- Attachments --- + # Hide activity attachments from case documents-tab + #settings.br.case_include_activity_docs = False + # Hide case group attachments from case documents-tab + #settings.br.case_include_group_docs = False + + # --- Case Activities --- + # Disable tracking of case activities + #settings.br.case_activities = False + # Disable assignment of case activities to staff + #settings.br.case_activity_manager = False + # Expose "urgent" priority for case activities (=emergencies) + #settings.br.case_activity_urgent_option = True + # Disable need categories in case activities + #settings.br.case_activity_need = False + # Use a free-text subject line in case activities + #settings.br.case_activity_subject = True + # Use a free-text field to document need details in case activities + #settings.br.case_activity_need_details = True + # Disable status and end-date for case activities + #settings.br.case_activity_status = False + # Show end-date of case activites (True=show, "writable"=allow manual edit) + #settings.br.case_activity_end_date = True + # Enable inline-updates of case activities + #settings.br.case_activity_updates = True + # Disable fields for outcome documentation + #settings.br.case_activity_outcome = False + # Allow documents to be attached to case activities + #settings.br.case_activity_documents = True + + # --- Assistance Measures --- + # Disable tracking of individual assistance measures + #settings.br.manage_assistance = False + # Use separate tab to track assistance measures + #settings.br.assistance_tab = True + # Hide inline assistance measures on case activity tab + #settings.br.assistance_inline = False + # Document date+time (rather than only date) for assistance measures + #settings.br.assistance_measures_use_time = True + # Set default status of assistance measures to closed + #settings.br.assistance_measure_default_closed = True + # Disable assignment of assistance measures to staff + #settings.br.assistance_manager = False + # Disable types of assistance (e.g. if there is only one type) + #settings.br.assistance_types = False + + # --- Assistance Themes --- + # Enable assistance themes + #settings.br.assistance_themes = True + # Use a common set of assistance themes rather than org-specific + #settings.br.assistance_themes_org_specific = False + # Organize assistance themes by org sector + #settings.br.assistance_themes_sectors = True + # Organize assistance themes by need type + #settings.br.assistance_themes_needs = True + # Document assistance details per theme + #settings.br.assistance_details_per_theme = True + # Enable auto-linking of assistance measure details to case activities + #settings.br.assistance_activity_autolink = True + # Disable tracking of effort (=hours spent) for assistance measures + #settings.br.assistance_track_effort = False + # ------------------------------------------------------------------------- # CMS # Uncomment this to hide CMS from module index pages @@ -478,9 +610,6 @@ def config(settings): # Uncomment to use the term Beneficiary instead of Case #settings.dvr.label = "Beneficiary" - # Uncomment this to allow cases to belong to multiple case groups ("households") - #settings.dvr.multiple_case_groups = True - # Uncomment this to enable tracking of transfer origin/destination sites #settings.dvr.track_transfer_sites = True # Uncomment this to enable features to manage transferability of cases @@ -511,6 +640,13 @@ def config(settings): #settings.dvr.activity_types_hierarchical = True # Uncomment this to use status field in case activities #settings.dvr.case_activity_use_status = True + # Uncomment this to disable follow-up fields in case activities + #settings.dvr.case_activity_follow_up = False + + # Uncomment this to include case activity docs on beneficiary documents-tab + #settings.dvr.case_include_activity_docs = True + # Uncomment this to include case group docs on beneficiary documents-tab + #settings.dvr.case_include_group_docs = True # Uncomment this if Case activities use multiple Needs #settings.dvr.case_activity_needs_multiple = True @@ -523,6 +659,24 @@ def config(settings): # Uncomment this to manage individual response actions in case activities #settings.dvr.manage_response_actions = True + # Uncomment this to not use response action types + #settings.dvr.response_types = False + # Uncomment this to use response themes + #settings.dvr.response_themes = True + # Uncomment this to not use org-specific response themes + #settings.dvr.response_themes_org_specific = False + # Uncomment this to link response themes to org sectors + #settings.dvr.response_themes_sectors = True + # Uncomment this to link response themes to needs + #settings.dvr.response_themes_needs = True + # Uncomment this to automatically link responses to case activities + #settings.dvr.response_activity_autolink = True + # Uncomment this to activate features for response planning + #settings.dvr.response_planning = True + # Uncomment this to use a separate due-date for responses + #settings.dvr.response_due_date = True + # Uncomment this to use date+time for responses (instead of just date) + #settings.dvr.response_use_time = True # Configure a regular expression pattern for ID Codes (QR Codes) #settings.dvr.id_code_pattern = "(?P