desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'How training instructors are managed:
None: Don\'t track instructors at all
internal: Use persons from the registry
external: Just use free-text Names
both: Use both fields
multiple: Use multiple persons from the registry'
| def get_hrm_training_instructors(self):
| return self.__lazy('hrm', 'training_instructors', 'external')
|
'How people are filtered based on their Trainings:
False (default): Std options filter where we do an OR
- i.e. we see all people who have done either (or both) Course A or Course B
True: Contains options filter (basically an AND)
- i.e. we see only people who have done both Course A and Course B'
| def get_hrm_training_filter_and(self):
| return self.__lazy('hrm', 'training_filter_and', False)
|
'HRM Activity Types (for experience record),
a dict {"code": "label"}, None to deactivate (default)'
| def get_hrm_activity_types(self):
| return self.hrm.get('activity_types')
|
'Whether to use a \'Active\' field for Volunteers &, if so, whether
this is set manually or calculated by a function
- options are: False, True or a function
NB If using a function, put this inside a Lazy lookup'
| def get_hrm_vol_active(self):
| return self.__lazy('hrm', 'vol_active', default=False)
|
'The tooltip to show when viewing the Active status in the Volunteer RHeader'
| def get_hrm_vol_active_tooltip(self):
| return self.hrm.get('vol_active_tooltip')
|
'Whether to use Availability Tab for Volunteers
Options:
None
True'
| def get_hrm_vol_availability_tab(self):
| return self.__lazy('hrm', 'vol_availability_tab', default=None)
|
'Whether to use Experience for Volunteers &, if so, which table to use
- options are: False, "experience", "activity", "programme" or "both"'
| def get_hrm_vol_experience(self):
| return self.__lazy('hrm', 'vol_experience', default='programme')
|
'Whether Volunteers should use Departments'
| def get_hrm_vol_departments(self):
| return self.__lazy('hrm', 'vol_departments', default=False)
|
'Whether Volunteers should use Roles'
| def get_hrm_vol_roles(self):
| return self.__lazy('hrm', 'vol_roles', default=True)
|
'What should be put into the \'Manager\' field of the Volunteer Service Record'
| def get_hrm_vol_service_record_manager(self):
| return self.__lazy('hrm', 'vol_service_record_manager', default=current.T('Branch Coordinator'))
|
'Show Staff Management Tabs for Facilities in Inventory Module'
| def get_inv_facility_manage_staff(self):
| return self.inv.get('facility_manage_staff', True)
|
'Can Stock levels be adjusted directly?
- defaults to False'
| def get_inv_direct_stock_edits(self):
| return self.inv.get('direct_stock_edits', False)
|
'Whether Warehouse Types vary by Organisation'
| def get_inv_org_dependent_warehouse_types(self):
| return self.inv.get('org_dependent_warehouse_types', False)
|
'Show mode of transport on Sent Shipments'
| def get_inv_send_show_mode_of_transport(self):
| return self.inv.get('show_mode_of_transport', False)
|
'Show Organisation on Sent Shipments'
| def get_inv_send_show_org(self):
| return self.inv.get('send_show_org', True)
|
'Show Time In on Sent Shipments'
| def get_inv_send_show_time_in(self):
| return self.inv.get('send_show_time_in', False)
|
'Call Stock Adjustments \'Stock Counts\''
| def get_inv_stock_count(self):
| return self.inv.get('stock_count', True)
|
'Whether or not Pack values are tracked'
| def get_inv_track_pack_values(self):
| return self.inv.get('track_pack_values', True)
|
'Item Statuses which can also be Sent Shipment Types'
| def get_inv_item_status(self):
| T = current.T
return self.inv.get('item_status', {0: current.messages['NONE'], 1: T('Dump'), 2: T('Sale'), 3: T('Reject'), 4: T('Surplus')})
|
'Get the name of Shipments
- currently supported options are:
* shipment
* order'
| def get_inv_shipment_name(self):
| return self.inv.get('shipment_name', 'shipment')
|
'Shipment types which are common to both Send & Receive'
| def get_inv_shipment_types(self):
| return self.inv.get('shipment_types', {0: current.messages['NONE'], 11: current.T('Internal Shipment')})
|
'Shipment types which are just for Send'
| def get_inv_send_types(self):
| return self.inv.get('send_types', {21: current.T('Distribution')})
|
'Which Shipment type is default'
| def get_inv_send_type_default(self):
| return self.inv.get('send_type_default', 0)
|
'Shipment types which are just for Receive'
| def get_inv_recv_types(self):
| T = current.T
return self.inv.get('recv_types', {32: T('Donation'), 34: T('Purchase')})
|
'Validate for Unique Warehouse Codes'
| def get_inv_warehouse_code_unique(self):
| return self.inv.get('warehouse_code_unique', False)
|
'Use Vehicles to respond to Incident Reports?'
| def get_irs_vehicle(self):
| return self.irs.get('vehicle', False)
|
'Whether Members should consolidate tabs into 1x CV page:
* Awards
* Education
* Experience
* Training
* Skills'
| def get_member_cv_tab(self):
| return self.member.get('cv_tab', False)
|
'Whether to have Membership Types'
| def get_member_membership_types(self):
| return self.__lazy('member', 'membership_types', default=True)
|
'Configure mobile forms - a list of items, or a callable returning
a list of items.
Item formats:
"tablename"
("Title", "tablename")
("Title", "tablename", options)
Format for options:
name = name, ...form name (optional)
c = controller, ...use this controller for form handling
f = function, ...use ... | def get_mobile_forms(self):
| return self.__lazy('mobile', 'forms', [])
|
'Expose mobile forms for dynamic tables'
| def get_mobile_dynamic_tables(self):
| return self.mobile.get('dynamic_tables', True)
|
'Whether organisation_id fields should use an Autocomplete instead of a dropdown'
| def get_org_autocomplete(self):
| return self.org.get('autocomplete', False)
|
'If the system is only used by a single Organisation then this can be defaulted/hidden
- if-appropriate can also use lazy settings to set this from the user.organisation_id'
| def get_org_default_organisation(self):
| default_organisation = self.__lazy('org', 'default_organisation', default=None)
if default_organisation:
if (not isinstance(default_organisation, (int, long))):
default_organisation_id = current.session.s3.default_organisation_id
if default_organisation_id:
defaul... |
'If the system is only used by a single Site then this can be defaulted/hidden
- if-appropriate can also use lazy settings to set this from the user.site_id'
| def get_org_default_site(self):
| default_site = self.org.get('default_site', None)
if default_site:
if (not isinstance(default_site, (int, long))):
default_site_id = current.session.s3.default_site_id
if default_site_id:
default_site = default_site_id
else:
table = cur... |
'Whether to use an Organization Sector field'
| def get_org_sector(self):
| return self.org.get('sector', False)
|
'Whether to support Organisation Branches or not'
| def get_org_branches(self):
| return self.org.get('branches', False)
|
'Show branches of an organisation as tree rather than as table'
| def get_org_branches_tree_view(self):
| return self.org.get('branches_tree_view', False)
|
'Whether Facility Types are Hierarchical or not'
| def get_org_facility_types_hierarchical(self):
| return self.org.get('facility_types_hierarchical', False)
|
'The Context to use for displaying Organisation Locations
- defaults to the Organisation\'s Sites
- can also set to "organisation_location.location_id"'
| def get_org_organisation_location_context(self):
| return self.org.get('organisation_location_context', 'site.location_id')
|
'Whether Organisation Types are Hierarchical or not'
| def get_org_organisation_types_hierarchical(self):
| return self.org.get('organisation_types_hierarchical', False)
|
'Whether Organisation Types are Multiple or not'
| def get_org_organisation_types_multiple(self):
| return self.org.get('organisation_types_multiple', False)
|
'Whether to show a Tab for Facilities'
| def get_org_facilities_tab(self):
| return self.org.get('facilities_tab', True)
|
'Whether to support Organisation Groups or not
& what their name is:
\'Coalition\'
\'Network\''
| def get_org_groups(self):
| return self.org.get('groups', False)
|
'Whether to represent org_group affiliation in team
references (pr_group_id)'
| def get_org_group_team_represent(self):
| return self.org.get('group_team_represent', False)
|
'Whether to show a Tab for Organisation Needs'
| def get_org_needs_tab(self):
| return self.org.get('needs_tab', False)
|
'Whether to show a Tab for Offices'
| def get_org_offices_tab(self):
| return self.org.get('offices_tab', True)
|
'Whether to support Organisation Regions or not'
| def get_org_regions(self):
| return self.org.get('regions', False)
|
'Whether Organisation Regions maintain a list of countries'
| def get_org_region_countries(self):
| return self.org.get('region_countries', False)
|
'Whether Organisation Regions are Hierarchical or not'
| def get_org_regions_hierarchical(self):
| return self.org.get('regions_hierarchical', False)
|
'Whether to show a Tab for Organisation Resources'
| def get_org_resources_tab(self):
| return self.org.get('resources_tab', False)
|
'Whether Organisation Servics are Hierarchical or not'
| def get_org_services_hierarchical(self):
| return self.org.get('services_hierarchical', False)
|
'Whether to expose the service locations tab for organisations'
| def get_org_service_locations(self):
| return self.__lazy('org', 'service_locations', default=False)
|
'Length of auto-generated Codes for Facilities (org_site)'
| def get_org_site_code_len(self):
| return self.org.get('site_code_len', 10)
|
'Label for site_id fields'
| def get_org_site_label(self):
| return current.T(self.org.get('site_label', 'Facility'))
|
'Whether Sites should have Tabs for Inv/Req'
| def get_org_site_inv_req_tabs(self):
| return self.org.get('site_inv_req_tabs', True)
|
'Whether site_id fields should use an Autocomplete instead of a dropdown'
| def get_org_site_autocomplete(self):
| return self.org.get('site_autocomplete', False)
|
'Which extra fields should be returned in S3SiteAutocompleteWidget'
| def get_org_site_autocomplete_fields(self):
| return self.org.get('site_autocomplete_fields', ('instance_type',))
|
'Whether to display the last_contacted field for a Site'
| def get_org_site_last_contacted(self):
| return self.org.get('site_last_contacted', False)
|
'Whether volunteers can be assigned to Sites'
| def get_org_site_volunteers(self):
| return self.org.get('site_volunteers', False)
|
'Get custom tasks for scheduled site checks'
| def get_org_site_check(self):
| return self.org.get('site_check')
|
'Whether to use Summary fields for Organisation/Office:
# National/International staff'
| def get_org_summary(self):
| return self.org.get('summary', False)
|
'Enables/Disables optional fields according to a user\'s Organisation
- must specify either field or tablename/fieldname
(e.g. for virtual fields)'
| def set_org_dependent_field(self, tablename=None, fieldname=None, enable_field=True):
| enabled = False
dependent_fields = self.org.get('dependent_fields')
if dependent_fields:
org_name_list = dependent_fields.get(('%s.%s' % (tablename, fieldname)), None)
if org_name_list:
auth = current.auth
if auth.s3_has_role(auth.get_system_roles().ADMIN):
... |
'Whether Office code is unique'
| def get_org_office_code_unique(self):
| return self.org.get('office_code_unique', False)
|
'Whether Facility code is unique'
| def get_org_facility_code_unique(self):
| return self.org.get('facility_code_unique', False)
|
'Whether Organisations, Offices & Facilities should show a Tags tab'
| def get_org_tags(self):
| return self.org.get('tags', False)
|
'Whether Police Station code is unique'
| def get_police_station_code_unique(self):
| return self.police.get('police_station_unique', False)
|
'Function to provide the age group for an age'
| def get_pr_age_group(self, age):
| fn = self.pr.get('age_group')
if fn:
group = fn(age)
elif (age < 18):
group = '-17'
elif (age < 25):
group = '18-24'
elif (age < 40):
group = '25-39'
elif (age < 60):
group = '40-59'
else:
group = '60+'
return group
|
'Dict of integer-keyed options for Person Availability'
| def get_pr_person_availability_options(self):
| return self.__lazy('pr', 'person_availability_options', default=None)
|
'Whether to hide the third gender ("Other")'
| def get_pr_hide_third_gender(self):
| return self.__lazy('pr', 'hide_third_gender', default=True)
|
'During imports, records are only updated if the import
item contains a (matching) email address'
| def get_pr_import_update_requires_email(self):
| return self.pr.get('import_update_requires_email', True)
|
'Label for the AddPersonWidget2\'s \'Name\' field'
| def get_pr_label_fullname(self):
| return self.__lazy('pr', 'label_fullname', default='Name')
|
'Whether the AddPersonWidget2 does a fuzzy search for duplicates
NB This setting has no effect with the old AddPersonWidget'
| def get_pr_lookup_duplicates(self):
| return self.pr.get('lookup_duplicates', False)
|
'Include Date of Birth in the AddPersonWidget[2]'
| def get_pr_request_dob(self):
| return self.__lazy('pr', 'request_dob', default=True)
|
'Whether Date of Birth is Mandatory, including in the AddPersonWidget2'
| def get_pr_dob_required(self):
| return self.__lazy('pr', 'dob_required', default=False)
|
'Include Email in the AddPersonWidget2'
| def get_pr_request_email(self):
| return self.__lazy('pr', 'request_email', default=True)
|
'Include Father Name in the AddPersonWidget2'
| def get_pr_request_father_name(self):
| return self.__lazy('pr', 'request_father_name', default=False)
|
'Include GrandFather Name in the AddPersonWidget2'
| def get_pr_request_grandfather_name(self):
| return self.__lazy('pr', 'request_grandfather_name', default=False)
|
'Include Gender in the AddPersonWidget[2]'
| def get_pr_request_gender(self):
| return self.__lazy('pr', 'request_gender', default=True)
|
'Include Home Phone in the AddPersonWidget2'
| def get_pr_request_home_phone(self):
| return self.__lazy('pr', 'request_home_phone', default=False)
|
'Include Mobile Phone in the AddPersonWidget2'
| def get_pr_request_mobile_phone(self):
| return self.__lazy('pr', 'request_mobile_phone', default=True)
|
'Include Year of Birth in the AddPersonWidget2'
| def get_pr_request_year_of_birth(self):
| return self.__lazy('pr', 'request_year_of_birth', default=False)
|
'Format with which to represent Person Names
Generally want an option in AddPersonWidget2 to handle the input like this too'
| def get_pr_name_format(self):
| return self.__lazy('pr', 'name_format', default='%(first_name)s %(middle_name)s %(last_name)s')
|
'Whether S3PersonAutocompleteWidget results show the details of their HR record'
| def get_pr_search_shows_hr_details(self):
| return self.pr.get('search_shows_hr_details', True)
|
'Whether the AddPersonWidget allows selecting existing PRs
- set to True if Persons can be found in multiple contexts
- set to False if just a single context
NB This setting has no effect with the new AddPersonWidget2'
| def get_pr_select_existing(self):
| return self.pr.get('select_existing', True)
|
'Whether the AddPersonWidget2 provides separate name fields or not
Options:
False (single field)
2 (first/last)
3 (first/middle/last)'
| def get_pr_separate_name_fields(self):
| return self.__lazy('pr', 'separate_name_fields', False)
|
'Whether or not to show an address tab in person details'
| def get_pr_use_address(self):
| return self.pr.get('use_address', True)
|
'Show emergency contacts as well as standard contacts in Person Contacts page'
| def get_pr_show_emergency_contacts(self):
| return self.pr.get('show_emergency_contacts', True)
|
'Which tabs to show for contacts: all, public &/or private'
| def get_pr_contacts_tabs(self):
| contacts_tabs = self.pr.get('contacts_tabs', ('all',))
if (not contacts_tabs):
return ()
return contacts_tabs
|
'Enable 3W mode in the projects module'
| def get_project_mode_3w(self):
| return self.project.get('mode_3w', False)
|
'Enable Tasks mode in the projects module'
| def get_project_mode_task(self):
| return self.project.get('mode_task', False)
|
'Enable DRR extensions in the projects module'
| def get_project_mode_drr(self):
| return self.project.get('mode_drr', False)
|
'Use Activities in Projects & Tasks'
| def get_project_activities(self):
| return self.project.get('activities', False)
|
'Use Sectors in Activities'
| def get_project_activity_sectors(self):
| return self.project.get('activity_sectors', False)
|
'Use Activity Types in Activities & Projects'
| def get_project_activity_types(self):
| return self.project.get('activity_types', False)
|
'Filter according to Year in Activities'
| def get_project_activity_filter_year(self):
| return self.project.get('activity_filter_year', False)
|
'Show the \'Assign Staff\' tab in Projects (if the user has permission to do so)'
| def get_project_assign_staff_tab(self):
| return self.__lazy('project', 'assign_staff_tab', default=True)
|
'Whether to Monitor Project Budgets'
| def get_project_budget_monitoring(self):
| return self.project.get('budget_monitoring', False)
|
'Use Codes in Projects'
| def get_project_codes(self):
| return self.project.get('codes', False)
|
'Label project_location as \'Community\''
| def get_project_community(self):
| return self.project.get('community', False)
|
'Manage Community Volunteers in Projects'
| def get_project_community_volunteers(self):
| return self.project.get('community_volunteers', False)
|
'Use Demographics in Projects'
| def get_project_demographics(self):
| return self.project.get('demographics', False)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.