desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Whether Shelters should show a Tags tab'
| def get_cr_tags(self):
| return self.cr.get('tags', False)
|
'Generate tasks from shelter inspections (requires project module)'
| def get_cr_shelter_inspection_tasks(self):
| if self.has_module('project'):
return self.cr.get('shelter_inspection_tasks', False)
else:
return False
|
'List of active statuses of shelter inspection tasks
(subset of project_task_status_opts)'
| def get_cr_shelter_inspection_task_active_statuses(self):
| default = (1, 2, 3, 4, 5, 6, 11)
return self.cr.get('shelter_inspection_tasks_active_statuses', default)
|
'Completed-status for shelter inspection tasks (one value
of project_task_status_opts), will be set when inspection
flag is marked as resolved'
| def get_cr_shelter_inspection_task_completed_status(self):
| return self.cr.get('shelter_inspection_tasks_completed_status', 12)
|
'Label for Responses
- \'Assessment;
- \'Response\' (default if set to None)
- \'Survey\''
| def get_dc_response_label(self):
| return self.dc.get('response_label', 'Assessment')
|
'Whether Mobile Clients should download Assessments
- e.g. when these are created through Targetting'
| def get_dc_mobile_data(self):
| return self.dc.get('mobile_data', False)
|
'List of Group names that are cc\'d on Alerts'
| def get_deploy_cc_groups(self):
| return self.__lazy('deploy', 'cc_groups', default=[])
|
'Label for deployable Human Resources
e.g. \'Staff\', \'Volunteer\' (CERT), \'Member\' (RDRT)'
| def get_deploy_hr_label(self):
| return self.deploy.get('hr_label', 'Staff')
|
'Whether Alert recipients should be selected manually'
| def get_deploy_manual_recipients(self):
| return self.deploy.get('manual_recipients', True)
|
'Whether to post the alerts in twitter
@ToDo: enhance this by as well as True,
being able to specify a specific Twitter channel to tweet on'
| def get_deploy_post_to_twitter(self):
| return self.deploy.get('post_to_twitter', False)
|
'Whether Responses to Alerts come in via the Web'
| def get_deploy_responses_via_web(self):
| return self.deploy.get('responses_via_web', True)
|
'Whether to have filters for Ratings when selecting deployables for an Alert'
| def get_deploy_select_ratings(self):
| return self.deploy.get('select_ratings', False)
|
'Label for deployable Team
e.g. \'RDRT\', \'RIT\''
| def get_deploy_team_label(self):
| return self.deploy.get('team_label', 'Deployable')
|
'label for Document/Attachment'
| def get_doc_label(self):
| return self.doc.get('label', 'Document')
|
'Whether Cases are called Cases or Beneficiaries
- default: None = Case
- valid options: "Beneficiary"'
| def get_dvr_label(self):
| return self.dvr.get('label', None)
|
'Enable features to manage case flags'
| def get_dvr_case_flags(self):
| return self.dvr.get('case_flags', False)
|
'Enable features to track transfer origin/destination sites'
| def get_dvr_track_transfer_sites(self):
| return self.dvr.get('track_transfer_sites', False)
|
'Site types for case transfer origin/destination'
| def get_dvr_transfer_site_types(self):
| default = ('cr_shelter', 'org_office', 'org_facility')
return self.dvr.get('transfer_site_types', default)
|
'Enable features to manage transferability of cases'
| def get_dvr_manage_transferability(self):
| return self.dvr.get('manage_transferability', False)
|
'Whether a case can belong to multiple case groups at the same time'
| def get_dvr_multiple_case_groups(self):
| return self.dvr.get('multiple_case_groups', False)
|
'Register number of persons per household (family)
False = off
True = manual
"auto" = count family members automatically'
| def get_dvr_household_size(self):
| return self.dvr.get('household_size', False)
|
'Expose flags to mark appointment types as mandatory'
| def get_dvr_mandatory_appointments(self):
| return self.dvr.get('mandatory_appointments', False)
|
'Whether case events automatically close appointments'
| def get_dvr_case_events_close_appointments(self):
| return self.dvr.get('case_events_close_appointments', False)
|
'Whether appointments which require presence shall
automatically update the "last seen on" date when
set to "completed"'
| def get_dvr_appointments_update_last_seen_on(self):
| return self.dvr.get('appointments_update_last_seen_on', False)
|
'Whether appointments automatically update the case
status when set to "completed"'
| def get_dvr_appointments_update_case_status(self):
| return self.dvr.get('appointments_update_case_status', False)
|
'Whether payments (e.g. allowance) shall automatically update
the "last seen on" date when set to "paid"'
| def get_dvr_payments_update_last_seen_on(self):
| return self.dvr.get('payments_update_last_seen_on', False)
|
'A regular expression pattern to parse ID Codes (QR codes),
None to disable ID code parsing
Should return the following groups:
label the PE label, mandatory
family the PE label of the head of family, optional
first_name optional
last_name optional
date_of_b... | def get_dvr_id_code_pattern(self):
| return self.dvr.get('id_code_pattern', None)
|
'Warn during event registration when the person is currently
not checked-in'
| def get_dvr_event_registration_checkin_warning(self):
| return self.dvr.get('event_registration_checkin_warning', False)
|
'Event registration UI to show profile picture
by default (True), or only on demand (False):
- can be set to False (selectively) in order to improve
responsiveness of the UI and reduce network traffic'
| def get_dvr_event_registration_show_picture(self):
| return self.dvr.get('event_registration_show_picture', True)
|
'List of case event type codes to exclude from
the event registration UI; can use * as wildcard
Example:
settings.dvr.event_registration_exclude_codes = ("FOOD*",)'
| def get_dvr_event_registration_exclude_codes(self):
| return self.dvr.get('event_registration_exclude_codes', None)
|
'Use service type in group/case activities'
| def get_dvr_activity_use_service_type(self):
| return self.dvr.get('activity_use_service_type', False)
|
'Use sectors in group/case activities'
| def get_dvr_activity_sectors(self):
| return self.dvr.get('activity_sectors', False)
|
'Use configurable statuses in case activities
instead of simple completed-flag'
| def get_dvr_case_activity_use_status(self):
| return self.dvr.get('case_activity_use_status', False)
|
'Whether Case Activities link to Multiple Needs
- e.g. DRK: False
- e.g. STL: True'
| def get_dvr_case_activity_needs_multiple(self):
| return self.dvr.get('case_activity_needs_multiple', False)
|
'Use service type in needs'
| def get_dvr_needs_use_service_type(self):
| return self.dvr.get('needs_use_service_type', False)
|
'Need types are hierarchical'
| def get_dvr_needs_hierarchical(self):
| return self.dvr.get('needs_hierarchical', False)
|
'Vulnerability types are hierarchical'
| def get_dvr_vulnerability_types_hierarchical(self):
| return self.dvr.get('vulnerability_types_hierarchical', False)
|
'Manage individual response actions in case activities'
| def get_dvr_manage_response_actions(self):
| return self.dvr.get('manage_response_actions', False)
|
'Response types are hierarchical'
| def get_dvr_response_types_hierarchical(self):
| return self.dvr.get('response_types_hierarchical', False)
|
'Validate for Unique School Codes'
| def get_edu_school_code_unique(self):
| return self.edu.get('school_code_unique', False)
|
'Whether Events are called Events or Disasters
- default: None = Event
- valid options: "Disaster"'
| def get_event_label(self):
| return self.event.get('label', None)
|
'Whether deleting an Event cascades to deleting all Incidents or whether it sets NULL
- \'normal\' workflow is where an Event is created and within that various Incidents,
aso cascading the delete makes sense here ("delete everything associated with this event")
- WA COP uses Events to group existing Incidents, so here... | def get_event_cascade_delete_incidents(self):
| return self.event.get('cascade_delete_incidents', True)
|
'Whether Events can be Exercises'
| def get_event_exercise(self):
| return self.event.get('exercise', False)
|
'Whether Event Types are Hierarchical or not'
| def get_event_types_hierarchical(self):
| return self.event.get('types_hierarchical', False)
|
'Whether Incident Types are Hierarchical or not'
| def get_incident_types_hierarchical(self):
| return self.event.get('incident_types_hierarchical', False)
|
'Whether to show the DC response tab for events'
| def get_event_dc_response_tab(self):
| return self.event.get('dc_response_tab', True)
|
'Whether to show the DC target tab for events'
| def get_event_dc_target_tab(self):
| return self.event.get('dc_target_tab', True)
|
'Whether to show the impact tab for events'
| def get_event_impact_tab(self):
| return self.event.get('impact_tab', True)
|
'Whether to show the impact tab for incidents'
| def get_incident_impact_tab(self):
| return self.event.get('incident_impact_tab', False)
|
'Whether to show the dispatch tab for events'
| def get_event_dispatch_tab(self):
| if self.has_module('msg'):
return self.event.get('dispatch_tab', False)
else:
return False
|
'Whether to show the dispatch tab for incidents'
| def get_incident_dispatch_tab(self):
| if self.has_module('msg'):
return self.event.get('incident_dispatch_tab', True)
else:
return False
|
'Show tab with teams assigned for incidents, string to
define the label of the tab or True to use default label'
| def get_incident_teams_tab(self):
| return self.event.get('incident_teams_tab', False)
|
'Evacuees Group Types'
| def get_evr_group_types(self):
| T = current.T
return self.evr.get('group_types', {1: T('other'), 2: T('Family'), 3: T('Tourist group'), 4: T('Society'), 5: T('Company'), 6: T('Convent'), 7: T('Hotel'), 8: T('Hospital'), 9: T('Orphanage')})
|
'Show Evacuees physical description'
| def get_evr_show_physical_description(self):
| return self.evr.get('physical_description', True)
|
'Link evacuees to Organisations.'
| def get_evr_link_to_organisation(self):
| return self.evr.get('link_to_organisation', False)
|
'Whether Fire Station code is unique'
| def get_fire_station_code_unique(self):
| return self.fire.get('fire_station_unique', False)
|
'Grade options for Courses
NB Best to keep Pass/Fail on these numbers but can add additional values if-required, e.g.:
{0: T("No Show"),
1: T("Left Early"),
8: T("Pass"),
9: T("Fail"),'
| def get_hrm_course_grades(self):
| T = current.T
return self.__lazy('hrm', 'course_grades', default={8: T('Pass'), 9: T('Fail')})
|
'Whether the Pass Mark for a course is defined by the Grade Details'
| def get_hrm_course_pass_marks(self):
| return self.hrm.get('course_pass_marks', False)
|
'Which Types to use for Courses
- allow all by default for prepop'
| def get_hrm_course_types(self):
| T = current.T
return self.__lazy('hrm', 'course_types', default={1: T('Staff'), 2: T('Volunteers'), 3: T('Deployables'), 4: T('Members')})
|
'Label for \'Staff\'
e.g. \'Contacts\''
| def get_hrm_staff_label(self):
| return current.T(self.hrm.get('staff_label', 'Staff'))
|
'Label for Organisations in Human Resources'
| def get_hrm_organisation_label(self):
| label = self.hrm.get('organisation_label')
if (not label):
if self.get_org_branches():
label = 'Organization / Branch'
else:
label = 'Organization'
return current.T(label)
|
'Label for Root Organisations in Human Resources'
| def get_hrm_root_organisation_label(self):
| return current.T(self.hrm.get('root_organisation_label', 'Top-level Organization'))
|
'If set to True then Staff & Volunteers require an email address
NB Currently this also acts on Members & Beneficiaries!'
| def get_hrm_email_required(self):
| return self.hrm.get('email_required', True)
|
'What to use to position Staff on the Map when not Tracking them
- valid options are:
"site_id" - Use the HR\'s Site Location
"person_id" - Use the HR\'s Person Location (i.e. Home Address)
("person_id", "site_id") - Use the HR\'s Person Location if-available, fallback to the Site if-not
("site_id","person_id") - Use t... | def get_hrm_location_staff(self):
| return self.hrm.get('location_staff', 'site_id')
|
'What to use to position Volunteers on the Map when not Tracking them
- valid options are:
"site_id" - Use the HR\'s Site Location
"person_id" - Use the HR\'s Person Location (i.e. Home Address)
("person_id", "site_id") - Use the HR\'s Person Location if-available, fallback to the Site if-not
("site_id", "person_id") -... | def get_hrm_location_vol(self):
| return self.hrm.get('location_vol', 'person_id')
|
'Whether Staff have multiple contracts recorded'
| def get_hrm_multiple_contracts(self):
| return self.__lazy('hrm', 'multiple_contracts', default=False)
|
'If set to True then the Job Titles Catalog is Organisation-dependent (i.e. each root org sees a different Catalog)'
| def get_hrm_org_dependent_job_titles(self):
| return self.hrm.get('org_dependent_job_titles', False)
|
'If set to True then Staff & Volunteers require an Organisation'
| def get_hrm_org_required(self):
| return self.hrm.get('org_required', True)
|
'True: Human Resources are being managed across multiple Organisations
False: Human Resources are only being managed internally within a single Organisation with no Branches'
| def get_hrm_multiple_orgs(self):
| return self.hrm.get('multiple_orgs', True)
|
'If set to True then HRM dataTables have a \'Send Message\' button
if the messaging module is enabled & users have the permission to access hrm/compose'
| def get_hrm_compose_button(self):
| return self.hrm.get('compose_button', True)
|
'If set to True then HRM records are deletable rather than just being able to be marked as obsolete'
| def get_hrm_deletable(self):
| return self.hrm.get('deletable', True)
|
'If set to True then HRs can have multiple Job Titles'
| def get_hrm_multiple_job_titles(self):
| return self.hrm.get('multi_job_titles', False)
|
'If set to True then show \'Staff\' options when HRM enabled
- needs a separate setting as vol requires hrm, but we may only wish to show Volunteers'
| def get_hrm_show_staff(self):
| return self.hrm.get('show_staff', True)
|
'If set to True then Staff and Volunteers are shown together'
| def get_hrm_mix_staff(self):
| return self.hrm.get('mix_staff', False)
|
'Whether there can be multiple site contacts per site
- disable this if needing a separate contact per sector'
| def get_hrm_site_contact_unique(self):
| return self.hrm.get('site_contact_unique', True)
|
'If set to True then Skill Types are exposed to the UI
- each skill_type needs it\'s own set of competency levels
If set to False then Skill Types are hidden from the UI
- all skills use the same skill_type & hence the same set of competency levels'
| def get_hrm_skill_types(self):
| return self.hrm.get('skill_types', False)
|
'Whether Staff should use Departments'
| def get_hrm_staff_departments(self):
| return self.__lazy('hrm', 'staff_departments', default=True)
|
'Whether to use Experience for Staff &, if so, which table to use
- options are: False, "experience", "missions", "both"'
| def get_hrm_staff_experience(self):
| return self.hrm.get('staff_experience', 'experience')
|
'Whether to track salaries of staff'
| def get_hrm_salary(self):
| return self.hrm.get('salary', False)
|
'Whether Human Resource representations should include the Organisation'
| def get_hrm_show_organisation(self):
| return self.hrm.get('show_organisation', False)
|
'Whether Human Resources should use Teams
& what to call them (Teams or Groups currently supported)'
| def get_hrm_teams(self):
| return self.__lazy('hrm', 'teams', default='Teams')
|
'Whether Human Resource Teams should link to Organisations
& whether this is a Single Org or Multiple Orgs
Options:
None: disable link
1: single Org
2: multiple Orgs'
| def get_hrm_teams_orgs(self):
| return self.__lazy('hrm', 'teams_orgs', default=1)
|
'Whether Training Courses should be split into Internal & External'
| def get_hrm_trainings_external(self):
| return self.__lazy('hrm', 'trainings_external', default=False)
|
'Whether Human Resources should consolidate tabs into 1x CV page:
* Awards
* Education
* Experience
* Training
* Skills'
| def get_hrm_cv_tab(self):
| return self.hrm.get('cv_tab', False)
|
'Whether or not to show the HR record as tab, and with which
method:
True = show the default tab (human_resource)
"record" = consolidate tabs into 1x CV page:
* Staff Record
* Group Membership
False = do not show the tab (e.g. when HR record is inline)'
| def get_hrm_record_tab(self):
| return self.hrm.get('record_tab', True)
|
'Label to use for the HR record tab
- string not LazyT'
| def get_hrm_record_label(self):
| label = self.__lazy('hrm', 'record_label', default=None)
if (not label):
if (current.request.controller == 'vol'):
label = 'Volunteer Record'
elif self.get_hrm_mix_staff():
label = 'Staff/Volunteer Record'
else:
label = 'Staff Record'
retu... |
'Whether Volunteers should use Awards'
| def get_hrm_use_awards(self):
| return self.hrm.get('use_awards', True)
|
'Whether Human Resources should use Certificates'
| def get_hrm_use_certificates(self):
| return self.__lazy('hrm', 'use_certificates', default=True)
|
'If set to True then Certificates are created automatically for each Course'
| def get_hrm_create_certificates_from_courses(self):
| return self.hrm.get('create_certificates_from_courses', False)
|
'If set to True then Certificates are filtered by (Root) Organisation
& hence certificates from other Organisations cannot be added to an HR\'s profile (except by Admins)'
| def get_hrm_filter_certificates(self):
| return self.hrm.get('filter_certificates', False)
|
'Whether Human Resources should show address tab'
| def get_hrm_use_address(self):
| use_address = self.hrm.get('use_address', None)
if (use_address is None):
return self.get_pr_use_address()
|
'Whether Human Resources should use Staff/Volunteer IDs,
either True or False, or "staff" to use code for staff
only'
| def get_hrm_use_code(self):
| return self.__lazy('hrm', 'use_code', default=False)
|
'Whether Human Resources should use Credentials'
| def get_hrm_use_credentials(self):
| return self.hrm.get('use_credentials', True)
|
'Whether Human Resources should use Physical Description
and what the name of the Tab should be.
Set to None to disable'
| def get_hrm_use_description(self):
| return self.hrm.get('use_description', 'Description')
|
'Whether Human Resources should show Education'
| def get_hrm_use_education(self):
| return self.hrm.get('use_education', False)
|
'Whether Human Resources should show ID Tab'
| def get_hrm_use_id(self):
| return self.hrm.get('use_id', True)
|
'Whether Human Resources should show Job Titles'
| def get_hrm_use_job_titles(self):
| return self.hrm.get('use_job_titles', True)
|
'Whether Human Resources should use Skills'
| def get_hrm_use_skills(self):
| return self.__lazy('hrm', 'use_skills', default=True)
|
'Whether Human Resources should use Skill Equivalence for Certificates'
| def get_hrm_certificate_skill(self):
| return self.__lazy('hrm', 'certificate_skill', default=False)
|
'Whether Human Resources should use Trainings'
| def get_hrm_use_trainings(self):
| return self.hrm.get('use_trainings', True)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.