Comment some useless settings in Sahana template

This commit is contained in:
Disassembler 2017-09-28 17:55:45 +02:00
parent f557e0621e
commit 026ca0d5d1

View File

@ -845,33 +845,33 @@ def config(settings):
#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
@ -1310,12 +1310,12 @@ def config(settings):
# restricted = True,
# module_type = 10,
#)),
("impact", Storage(
name_nice = T("Impacts"),
#description = "Used by Assess",
restricted = True,
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.",