Example #1
0
settings.modules = OrderedDict([
    # Core modules which shouldn't be disabled
    (
        "default",
        Storage(
            name_nice=T("Home"),
            restricted=False,  # Use ACLs to control access to this module
            access=
            None,  # All Users (inc Anonymous) can see this module in the default menu & access the controller
            module_type=None  # This item is not shown in the menu
        )),
    (
        "admin",
        Storage(
            name_nice=T("Administration"),
            #description = "Site Administration",
            restricted=True,
            access=
            "|1|",  # Only Administrators can see this module in the default menu & access the controller
            module_type=None  # This item is handled separately for the menu
        )),
    (
        "appadmin",
        Storage(
            name_nice=T("Administration"),
            #description = "Site Administration",
            restricted=True,
            module_type=None  # No Menu
        )),
    (
        "errors",
        Storage(
            name_nice=T("Ticket Viewer"),
            #description = "Needed for Breadcrumbs",
            restricted=False,
            module_type=None  # No Menu
        )),
    (
        "sync",
        Storage(
            name_nice=T("Synchronization"),
            #description = "Synchronization",
            restricted=True,
            access=
            "|1|",  # Only Administrators can see this module in the default menu & access the controller
            module_type=None  # This item is handled separately for the menu
        )),
    # Uncomment to enable internal support requests
    #("support", Storage(
    #        name_nice = T("Support"),
    #        #description = "Support Requests",
    #        restricted = True,
    #        module_type = None  # This item is handled separately for the menu
    #    )),
    (
        "gis",
        Storage(
            name_nice=T("Map"),
            #description = "Situation Awareness & Geospatial Analysis",
            restricted=True,
            module_type=6,  # 6th item in the menu
        )),
    (
        "pr",
        Storage(
            name_nice=T("Person Registry"),
            #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)),
    (
        "org",
        Storage(
            name_nice=T("Organizations"),
            #description = 'Lists "who is doing what & where". Allows relief agencies to coordinate their activities',
            restricted=True,
            module_type=1)),
    # All modules below here should be possible to disable safely
    (
        "hrm",
        Storage(
            name_nice=T("Staff"),
            #description = "Human Resources Management",
            restricted=True,
            module_type=2,
        )),
    (
        "vol",
        Storage(
            name_nice=T("Volunteers"),
            #description = "Human Resources Management",
            restricted=True,
            module_type=2,
        )),
    (
        "cms",
        Storage(
            name_nice=T("Content Management"),
            #description = "Content Management System",
            restricted=True,
            module_type=10,
        )),
    (
        "doc",
        Storage(
            name_nice=T("Documents"),
            #description = "A library of digital resources, such as photos, documents and reports",
            restricted=True,
            module_type=10,
        )),
    (
        "msg",
        Storage(
            name_nice=T("Messaging"),
            #description = "Sends & Receives Alerts via Email & SMS",
            restricted=True,
            # The user-visible functionality of this module isn't normally required. Rather it's main purpose is to be accessed from other modules.
            module_type=None,
        )),
    (
        "supply",
        Storage(
            name_nice=T("Supply Chain Management"),
            #description = "Used within Inventory Management, Request Management and Asset Management",
            restricted=True,
            module_type=None,  # Not displayed
        )),
    (
        "inv",
        Storage(
            name_nice=T("Warehouse"),
            #description = "Receiving and Sending Items",
            restricted=True,
            module_type=4)),
    #("proc", Storage(
    #        name_nice = T("Procurement"),
    #        #description = "Ordering & Purchasing of Goods & Services",
    #        restricted = True,
    #        module_type = 10
    #    )),
    (
        "asset",
        Storage(
            name_nice=T("Assets"),
            #description = "Recording and Assigning Assets",
            restricted=True,
            module_type=5,
        )),
    # Vehicle depends on Assets
    (
        "vehicle",
        Storage(
            name_nice=T("Vehicles"),
            #description = "Manage Vehicles",
            restricted=True,
            module_type=10,
        )),
    (
        "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,
        )),
    (
        "project",
        Storage(
            name_nice=T("Projects"),
            #description = "Tracking of Projects, Activities and Tasks",
            restricted=True,
            module_type=2)),
    (
        "survey",
        Storage(
            name_nice=T("Surveys"),
            #description = "Create, enter, and manage surveys.",
            restricted=True,
            module_type=5,
        )),
    (
        "cr",
        Storage(
            name_nice=T("Shelters"),
            #description = "Tracks the location, capacity and breakdown of victims in Shelters",
            restricted=True,
            module_type=10)),
    (
        "hms",
        Storage(
            name_nice=T("Hospitals"),
            #description = "Helps to monitor status of hospitals",
            restricted=True,
            module_type=10)),
    (
        "irs",
        Storage(
            name_nice=T("Incidents"),
            #description = "Incident Reporting System",
            restricted=False,
            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
    #       #audit_read = True,     # Can enable Audit for just an individual module here
    #       #audit_write = True
    #   )),
    #("mpr", Storage(
    #       name_nice = T("Missing Person Registry"),
    #       #description = "Helps to report and search for missing persons",
    #       restricted = False,
    #       module_type = 10,
    #   )),
    (
        "dvr",
        Storage(
            name_nice=T("Disaster Victim Registry"),
            #description = "Allow affected individuals & households to register to receive compensation and distributions",
            restricted=False,
            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,
    #    )),
    #("event", Storage(
    #        name_nice = T("Events"),
    #        #description = "Activate Events (e.g. from Scenario templates) for allocation of appropriate Resources (Human, Assets & Facilities).",
    #        restricted = True,
    #        module_type = 10,
    #    )),
    #("fire", Storage(
    #       name_nice = T("Fire Stations"),
    #       #description = "Fire Station Management",
    #       restricted = True,
    #       module_type = 1,
    #   )),
    #("flood", Storage(
    #        name_nice = T("Flood Warnings"),
    #        #description = "Flood Gauges show water levels in various parts of the country",
    #        restricted = False,
    #        module_type = 10
    #    )),
    #("member", Storage(
    #       name_nice = T("Members"),
    #       #description = "Membership Management System",
    #       restricted = True,
    #       module_type = 10,
    #   )),
    #("patient", Storage(
    #        name_nice = T("Patient Tracking"),
    #        #description = "Tracking of Patients",
    #        restricted = True,
    #        module_type = 10
    #    )),
    #("security", Storage(
    #       name_nice = T("Security"),
    #       #description = "Security Management System",
    #       restricted = True,
    #       module_type = 10,
    #   )),
    # These are specialist modules
    # Requires RPy2
    #("climate", Storage(
    #        name_nice = T("Climate"),
    #        #description = "Climate data portal",
    #        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,
    #    )),
    # @ToDo: Rewrite in a modern style
    #("budget", Storage(
    #        name_nice = T("Budgeting Module"),
    #        #description = "Allows a Budget to be drawn up",
    #        restricted = True,
    #        module_type = 10
    #    )),
    # @ToDo: Port these Assessments to the Survey module
    #("building", Storage(
    #        name_nice = T("Building Assessments"),
    #        #description = "Building Safety Assessments",
    #        restricted = True,
    #        module_type = 10,
    #    )),
    # Deprecated by Surveys module
    # - depends on CR, IRS & Impact
    #("assess", Storage(
    #        name_nice = T("Assessments"),
    #        #description = "Rapid Assessments & Flexible Impact Assessments",
    #        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 = 10
    #   )),
])
Example #2
0
settings.base.system_name_short = T("RMS")

# -----------------------------------------------------------------------------
# Theme (folder to use for views/layout.html)
settings.base.theme = "IFRC"
settings.gis.map_height = 600
settings.gis.map_width = 854
# Display Resources recorded to Admin-Level Locations on the map
# @ToDo: Move into gis_config?
settings.gis.display_L0 = True

# -----------------------------------------------------------------------------
# L10n (Localization) settings
settings.L10n.languages = OrderedDict([
    ("en-gb", "English"),
    ("es", "Español"),
    ("vi", "Tiếng Việt"),
])
# Default Language
settings.L10n.default_language = "en-gb"
# Default timezone for users
settings.L10n.utc_offset = "UTC +0700"
# 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 = ","
# Unsortable 'pretty' date format
settings.L10n.date_format = T("%d-%b-%y")
settings.L10n.datetime_format = T("%d-%b-%Y %H:%M")
# Make last name in person/user records mandatory
Example #3
0
settings.modules = OrderedDict([
    # Core modules which shouldn't be disabled
    (
        "default",
        Storage(
            name_nice=T("Home"),
            restricted=False,  # Use ACLs to control access to this module
            access=
            None,  # All Users (inc Anonymous) can see this module in the default menu & access the controller
            module_type=None  # This item is not shown in the menu
        )),
    (
        "admin",
        Storage(
            name_nice=T("Administration"),
            #description = "Site Administration",
            restricted=True,
            access=
            "|1|",  # Only Administrators can see this module in the default menu & access the controller
            module_type=None  # This item is handled separately for the menu
        )),
    (
        "appadmin",
        Storage(
            name_nice=T("Administration"),
            #description = "Site Administration",
            restricted=True,
            module_type=None  # No Menu
        )),
    (
        "errors",
        Storage(
            name_nice=T("Ticket Viewer"),
            #description = "Needed for Breadcrumbs",
            restricted=False,
            module_type=None  # No Menu
        )),
    (
        "sync",
        Storage(
            name_nice=T("Synchronization"),
            #description = "Synchronization",
            restricted=True,
            access=
            "|1|",  # Only Administrators can see this module in the default menu & access the controller
            module_type=None  # This item is handled separately for the menu
        )),
    (
        "gis",
        Storage(
            name_nice=T("Map"),
            #description = "Situation Awareness & Geospatial Analysis",
            restricted=True,
            module_type=6,  # 6th item in the menu
        )),
    (
        "pr",
        Storage(
            name_nice=T("Person Registry"),
            #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)),
    (
        "org",
        Storage(
            name_nice=T("Organizations"),
            #description = 'Lists "who is doing what & where". Allows relief agencies to coordinate their activities',
            restricted=True,
            module_type=10)),
    # All modules below here should be possible to disable safely
    (
        "hrm",
        Storage(
            name_nice=T("Staff"),
            #description = "Human Resources Management",
            restricted=True,
            module_type=10,
        )),
    #("cms", Storage(
    #      name_nice = T("Content Management"),
    #      #description = "Content Management System",
    #      restricted = True,
    #      module_type = 10,
    #  )),
    (
        "doc",
        Storage(
            name_nice=T("Documents"),
            #description = "A library of digital resources, such as photos, documents and reports",
            restricted=True,
            module_type=10,
        )),
    (
        "msg",
        Storage(
            name_nice=T("Messaging"),
            #description = "Sends & Receives Alerts via Email & SMS",
            restricted=True,
            # The user-visible functionality of this module isn't normally required. Rather it's main purpose is to be accessed from other modules.
            module_type=None,
        )),
    (
        "supply",
        Storage(
            name_nice=T("Supply Chain Management"),
            #description = "Used within Inventory Management, Request Management and Asset Management",
            restricted=True,
            module_type=None,  # Not displayed
        )),
    (
        "inv",
        Storage(
            name_nice=T("Warehouses"),
            #description = "Receiving and Sending Items",
            restricted=True,
            module_type=1)),
    #("proc", Storage(
    #        name_nice = T("Procurement"),
    #        #description = "Ordering & Purchasing of Goods & Services",
    #        restricted = True,
    #        module_type = 10
    #    )),
    (
        "asset",
        Storage(
            name_nice=T("Assets"),
            #description = "Recording and Assigning Assets",
            restricted=True,
            module_type=10,
        )),
    # Vehicle depends on Assets
    #("vehicle", Storage(
    #        name_nice = T("Vehicles"),
    #        #description = "Manage Vehicles",
    #        restricted = True,
    #        module_type = 10,
    #    )),
    (
        "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=2,
        )),
    #("project", Storage(
    #        name_nice = T("Projects"),
    #        #description = "Tracking of Projects, Activities and Tasks",
    #        restricted = True,
    #        module_type = 10
    #    )),
    #("survey", Storage(
    #        name_nice = T("Surveys"),
    #        #description = "Create, enter, and manage surveys.",
    #        restricted = True,
    #        module_type = 10,
    #    )),
    #("cr", Storage(
    #        name_nice = T("Shelters"),
    #        #description = "Tracks the location, capacity and breakdown of victims in Shelters",
    #        restricted = True,
    #       module_type = 10
    #    )),
    #("hms", Storage(
    #        name_nice = T("Hospitals"),
    #        #description = "Helps to monitor status of hospitals",
    #        restricted = True,
    #        module_type = 10
    #    )),
    #("irs", Storage(
    #        name_nice = T("Incidents"),
    #        #description = "Incident Reporting System",
    #        restricted = False,
    #        module_type = 10
    #    )),
])
Example #4
0
# Uncomment this to request the Organisation when a user registers
settings.auth.registration_requests_organisation = True
settings.auth.registration_pending = \
"""Registration awaiting approval from Administrator or Organisation Contact.
A confirmation email will be sent to you once approved.
For enquiries contact %s""" % settings.get_mail_approver()

# Record Approval
settings.auth.record_approval = True
settings.auth.record_approval_required_for = [
    "org_organisation", "project_project", "project_framework"
]

# L10n settings
settings.L10n.languages = OrderedDict([
    ("en", "English"),
])
# Default timezone for users
settings.L10n.utc_offset = "UTC +0700"
# 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 = ","
# Unsortable 'pretty' date format
#settings.L10n.date_format = T("%d-%b-%Y")
#settings.L10n.datetime_format = T("%d-%b-%Y %H:%M:%S")

# Finance settings
settings.fin.currencies = {
    "AUD": T("Australian Dollars"),
Example #5
0
# Provide a tool to select locations via a map on all forms with location_id
deployment_settings.gis.map_selector = True
# Display Resources recorded to Admin-Level Locations on the map
deployment_settings.gis.display_L0 = False
# Currently unused
#deployment_settings.gis.display_L1 = True
# Allow non-MapAdmins to edit Admin locations?
# (Defaults to True, if not set. Permission to edit location groups defaults
# to false.)
deployment_settings.gis.edit_L0 = False
deployment_settings.gis.edit_L1 = True
#deployment_settings.gis.edit_L2 = True
deployment_settings.gis.locations_hierarchy = OrderedDict([
    ("L0", T("Country")),
    ("L1", T("Province")),
    ("L2", T("District")),
    ("L3", T("Town")),
    ("L4", T("Village")),
    #("L5", T("Neighbourhood")),  # Currently not supported by testSuite
])
# Should we require locations to follow strict hierarchy?
deployment_settings.gis.strict_hierarchy = False
# Maximum Marker Size
# (takes effect only on display)
deployment_settings.gis.marker_max_height = 35
deployment_settings.gis.marker_max_width = 30
# Duplicate Features so that they show wrapped across the Date Line?
# Points only for now
# lon<0 have a duplicate at lon+360
# lon>0 have a duplicate at lon-360
deployment_settings.gis.duplicate_features = False
# Mouse Position: 'normal', 'mgrs' or 'off'