<s> try : <EOL> from collections import OrderedDict <EOL> except : <EOL> from gluon . contrib . simplejson . ordered_dict import OrderedDict <EOL> from gluon import current <EOL> from gluon . html import * <EOL> from gluon . storage import Storage <EOL> def config ( settings ) : <EOL> """<STR_LIT>""" <EOL> T = current . T <EOL> settings . base . prepopulate += ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> settings . base . system_name = T ( "<STR_LIT>" ) <EOL> settings . base . system_name_short = T ( "<STR_LIT>" ) <EOL> gis_levels = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> settings . auth . registration_requires_verification = True <EOL> settings . auth . registration_requires_approval = True <EOL> settings . mail . approver = "<STR_LIT>" <EOL> settings . auth . registration_link_user_to = { "<STR_LIT>" : T ( "<STR_LIT>" ) } <EOL> settings . auth . registration_link_user_to_default = [ "<STR_LIT>" ] <EOL> settings . auth . registration_roles = { "<STR_LIT>" : [ "<STR_LIT>" ] , <EOL> } <EOL> settings . auth . show_utc_offset = False <EOL> settings . auth . show_link = False <EOL> settings . security . policy = <NUM_LIT:5> <EOL> settings . security . map = True <EOL> settings . base . theme = "<STR_LIT>" <EOL> settings . ui . formstyle_row = "<STR_LIT>" <EOL> settings . ui . formstyle = "<STR_LIT>" <EOL> settings . ui . filter_formstyle = "<STR_LIT>" <EOL> settings . L10n . languages = OrderedDict ( [ <EOL> ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ] ) <EOL> settings . L10n . default_language = "<STR_LIT>" <EOL> settings . L10n . utc_offset = "<STR_LIT>" <EOL> settings . L10n . date_format = "<STR_LIT>" <EOL> settings . L10n . decimal_separator = "<STR_LIT:.>" <EOL> settings . L10n . thousands_separator = "<STR_LIT:U+002C>" <EOL> settings . gis . countries = ( "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ) <EOL> settings . gis . legend = "<STR_LIT:float>" <EOL> settings . gis . toolbar = False <EOL> settings . gis . widget_wms_browser = True <EOL> settings . gis . geonames_username = "<STR_LIT>" <EOL> settings . gis . lookup_code = "<STR_LIT>" <EOL> settings . event . types_hierarchical = True <EOL> settings . vulnerability . indicator_hierarchical = True <EOL> settings . ui . update_label = "<STR_LIT>" <EOL> settings . ui . summary = [ <EOL> { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT:label>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ { "<STR_LIT>" : "<STR_LIT>" } ] <EOL> } , <EOL> { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT:label>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ { "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : True } ] , <EOL> } , <EOL> { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT:label>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ { "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : True } ] <EOL> } , <EOL> ] <EOL> settings . search . filter_manager = False <EOL> current . response . menu = ( <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:c>" : "<STR_LIT>" , <EOL> "<STR_LIT:f>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:c>" : "<STR_LIT>" , <EOL> "<STR_LIT:f>" : "<STR_LIT:data>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:c>" : "<STR_LIT>" , <EOL> "<STR_LIT:f>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> ) <EOL> for item in current . response . menu : <EOL> item [ "<STR_LIT:url>" ] = URL ( item [ "<STR_LIT:c>" ] , <EOL> item [ "<STR_LIT:f>" ] , <EOL> args = [ "<STR_LIT>" if item [ "<STR_LIT:f>" ] not in [ "<STR_LIT>" ] <EOL> else "<STR_LIT>" ] ) <EOL> current . response . countries = ( <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } , <EOL> { "<STR_LIT:name>" : T ( "<STR_LIT>" ) , <EOL> "<STR_LIT:code>" : "<STR_LIT>" <EOL> } <EOL> ) <EOL> def customise_gis_location_controller ( ** attr ) : <EOL> s3 = current . response . s3 <EOL> standard_prep = s3 . prep <EOL> def custom_prep ( r ) : <EOL> if callable ( standard_prep ) : <EOL> result = standard_prep ( r ) <EOL> if not result : <EOL> return False <EOL> s3db = current . s3db <EOL> l10n_languages = dict ( settings . L10n . languages ) <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> l10n_languages [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> from s3 import IS_ISO639_2_LANGUAGE_CODE <EOL> s3db . gis_location_name . language . requires = IS_ISO639_2_LANGUAGE_CODE ( select = l10n_languages ) <EOL> if r . interactive or r . representation == "<STR_LIT>" : <EOL> if r . vars . get ( "<STR_LIT>" ) : <EOL> s3 . crud_strings [ "<STR_LIT>" ] = Storage ( <EOL> title_list = T ( "<STR_LIT>" ) , <EOL> ) <EOL> else : <EOL> s3 . crud_strings [ "<STR_LIT>" ] = Storage ( <EOL> title_list = T ( "<STR_LIT>" ) <EOL> ) <EOL> list_fields = s3db . get_config ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_fields . remove ( "<STR_LIT>" ) <EOL> filter_widgets = s3db . get_config ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> filter_widgets . pop ( <NUM_LIT:1> ) <EOL> if r . method != "<STR_LIT>" : <EOL> table = s3db . gis_location <EOL> s3db . add_components ( "<STR_LIT>" , <EOL> gis_location_name = { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> gis_location_tag = ( { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> ) , <EOL> ) <EOL> from s3 import S3MultiSelectWidget , S3SQLCustomForm , S3SQLInlineComponent <EOL> table . parent . widget = S3MultiSelectWidget ( multiple = False ) <EOL> crud_form = S3SQLCustomForm ( "<STR_LIT:name>" , <EOL> S3SQLInlineComponent ( <EOL> "<STR_LIT>" , <EOL> label = T ( "<STR_LIT>" ) , <EOL> multiple = False , <EOL> fields = [ ( "<STR_LIT>" , "<STR_LIT>" ) ] , <EOL> ) , <EOL> "<STR_LIT>" , <EOL> S3SQLInlineComponent ( <EOL> "<STR_LIT>" , <EOL> label = T ( "<STR_LIT>" ) , <EOL> multiple = False , <EOL> fields = [ ( "<STR_LIT>" , "<STR_LIT:value>" ) ] , <EOL> ) , <EOL> S3SQLInlineComponent ( <EOL> "<STR_LIT>" , <EOL> label = T ( "<STR_LIT>" ) , <EOL> multiple = False , <EOL> fields = [ ( "<STR_LIT>" , "<STR_LIT:value>" ) ] , <EOL> ) , <EOL> S3SQLInlineComponent ( <EOL> "<STR_LIT>" , <EOL> label = T ( "<STR_LIT>" ) , <EOL> multiple = False , <EOL> fields = [ ( "<STR_LIT>" , "<STR_LIT:value>" ) ] , <EOL> ) , <EOL> "<STR_LIT>" , <EOL> ) <EOL> NONE = current . messages [ "<STR_LIT>" ] <EOL> levels = current . gis . get_location_hierarchy ( ) <EOL> table . level . represent = lambda l : levels [ l ] if l else NONE <EOL> filter_widgets = s3db . get_config ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> filter_widgets . pop ( ) <EOL> filter_widgets . pop ( ) <EOL> s3db . configure ( "<STR_LIT>" , <EOL> crud_form = crud_form , <EOL> filter_widgets = filter_widgets , <EOL> list_fields = [ "<STR_LIT:name>" , <EOL> ( T ( "<STR_LIT>" ) , "<STR_LIT>" ) , <EOL> "<STR_LIT>" , <EOL> ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> ) <EOL> return True <EOL> s3 . prep = custom_prep <EOL> return attr <EOL> settings . customise_gis_location_controller = customise_gis_location_controller <EOL> def customise_event_event_controller ( ** attr ) : <EOL> s3 = current . response . s3 <EOL> standard_prep = s3 . prep <EOL> def custom_prep ( r ) : <EOL> if callable ( standard_prep ) : <EOL> result = standard_prep ( r ) <EOL> if not result : <EOL> return False <EOL> r . table . start_date . writable = True <EOL> return True <EOL> s3 . prep = custom_prep <EOL> attr [ "<STR_LIT>" ] = None <EOL> return attr <EOL> settings . customise_event_event_controller = customise_event_event_controller <EOL> def customise_event_event_resource ( r , tablename ) : <EOL> """<STR_LIT>""" <EOL> from s3 import S3SQLCustomForm , S3SQLInlineComponent , IS_LOCATION , S3LocationSelector <EOL> db = current . db <EOL> s3db = current . s3db <EOL> table = r . table <EOL> table . name . label = T ( "<STR_LIT>" ) <EOL> location_field = s3db . event_event_location . location_id <EOL> location_field . requires = IS_LOCATION ( ) <EOL> location_field . widget = S3LocationSelector ( levels = gis_levels ) <EOL> impact_fields = OrderedDict ( killed = "<STR_LIT>" , <EOL> total_affected = "<STR_LIT>" , <EOL> est_damage = "<STR_LIT>" , <EOL> ) <EOL> ptable = s3db . stats_impact_type <EOL> rows = db ( ptable . name . belongs ( impact_fields . values ( ) ) ) . select ( ptable . id , <EOL> ptable . name , <EOL> ) <EOL> parameters = rows . as_dict ( key = "<STR_LIT:name>" ) <EOL> impact_components = [ ] <EOL> impact_crud_form_fields = [ ] <EOL> impact_list_fields = [ ] <EOL> impact_report_fields = [ ] <EOL> for tag , label in impact_fields . items ( ) : <EOL> parameter = parameters [ label ] [ "<STR_LIT:id>" ] <EOL> impact_components . append ( { "<STR_LIT:name>" : tag , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:key>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( parameter , ) , <EOL> } ) <EOL> label = T ( label ) <EOL> impact_crud_form_fields . append ( S3SQLInlineComponent ( tag , <EOL> label = label , <EOL> link = False , <EOL> multiple = False , <EOL> fields = [ ( "<STR_LIT>" , "<STR_LIT:value>" ) ] , <EOL> filterby = dict ( field = "<STR_LIT>" , <EOL> options = parameter <EOL> ) <EOL> ) ) <EOL> impact_list_fields . append ( ( label , "<STR_LIT>" % tag ) ) <EOL> impact_report_fields . append ( ( T ( "<STR_LIT>" ) % dict ( param = label ) , "<STR_LIT>" % tag ) ) <EOL> s3db . add_components ( "<STR_LIT>" , <EOL> stats_impact = impact_components , <EOL> ) <EOL> crud_form = S3SQLCustomForm ( "<STR_LIT:name>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> * impact_crud_form_fields <EOL> ) <EOL> list_fields = [ <EOL> "<STR_LIT>" , <EOL> ] <EOL> lappend = list_fields . append <EOL> for level in gis_levels : <EOL> location_level = "<STR_LIT>" % level <EOL> lappend ( location_level ) <EOL> s3db . add_components ( "<STR_LIT>" , <EOL> gis_location_tag = { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> ) <EOL> lappend ( ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> list_fields . extend ( ( "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ) ) <EOL> list_fields . extend ( impact_list_fields ) <EOL> report_facts = [ ( T ( "<STR_LIT>" ) , "<STR_LIT>" ) ] <EOL> report_facts . extend ( impact_report_fields ) <EOL> report_options = s3db . get_config ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> report_options . fact = report_facts <EOL> s3db . configure ( "<STR_LIT>" , <EOL> crud_form = crud_form , <EOL> list_fields = list_fields , <EOL> ) <EOL> if r . interactive : <EOL> table . comments . label = T ( "<STR_LIT>" ) <EOL> current . response . s3 . crud_strings [ "<STR_LIT>" ] = Storage ( <EOL> label_create = T ( "<STR_LIT>" ) , <EOL> title_display = T ( "<STR_LIT>" ) , <EOL> title_list = T ( "<STR_LIT>" ) , <EOL> title_update = T ( "<STR_LIT>" ) , <EOL> label_list_button = T ( "<STR_LIT>" ) , <EOL> label_delete_button = T ( "<STR_LIT>" ) , <EOL> msg_record_created = T ( "<STR_LIT>" ) , <EOL> msg_record_modified = T ( "<STR_LIT>" ) , <EOL> msg_record_deleted = T ( "<STR_LIT>" ) , <EOL> msg_list_empty = T ( "<STR_LIT>" ) ) <EOL> settings . customise_event_event_resource = customise_event_event_resource <EOL> def represent_year ( date ) : <EOL> if date : <EOL> return date . strftime ( "<STR_LIT>" ) <EOL> else : <EOL> return "<STR_LIT>" <EOL> def customise_stats_demographic_data_resource ( r , tablename ) : <EOL> """<STR_LIT>""" <EOL> s3db = current . s3db <EOL> table = r . table <EOL> table . date . label = T ( "<STR_LIT>" ) <EOL> table . date . represent = represent_year <EOL> s3db . add_components ( "<STR_LIT>" , <EOL> gis_location_tag = { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> ) <EOL> list_fields = s3db . get_config ( r . tablename , "<STR_LIT>" ) <EOL> list_fields . insert ( <NUM_LIT:7> , ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> settings . customise_stats_demographic_data_resource = customise_stats_demographic_data_resource <EOL> def customise_vulnerability_data_resource ( r , tablename ) : <EOL> """<STR_LIT>""" <EOL> db = current . db <EOL> s3db = current . s3db <EOL> table = r . table <EOL> from s3 import IS_FLOAT_AMOUNT <EOL> table . value . represent = lambda v : IS_FLOAT_AMOUNT . represent ( v , precision = <NUM_LIT:3> ) <EOL> def represent_indicator ( id ) : <EOL> itable = db . vulnerability_indicator <EOL> row = db ( itable . parameter_id == id ) . select ( itable . name , <EOL> itable . description , <EOL> limitby = ( <NUM_LIT:0> , <NUM_LIT:1> ) <EOL> ) . first ( ) <EOL> if row : <EOL> represent = SPAN ( row . name , <EOL> _class = "<STR_LIT>" ) <EOL> represent [ "<STR_LIT>" ] = row . description <EOL> return represent <EOL> else : <EOL> return "<STR_LIT>" <EOL> table . parameter_id . represent = represent_indicator <EOL> table . date . label = T ( "<STR_LIT>" ) <EOL> table . date . represent = represent_year <EOL> table . end_date . label = T ( "<STR_LIT>" ) <EOL> table . end_date . represent = represent_year <EOL> list_fields = s3db . get_config ( r . tablename , "<STR_LIT>" ) <EOL> list_fields . insert ( list_fields . index ( "<STR_LIT:date>" ) + <NUM_LIT:1> , "<STR_LIT>" ) <EOL> s3db . add_components ( "<STR_LIT>" , <EOL> gis_location_tag = { "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : ( "<STR_LIT>" , ) , <EOL> } , <EOL> ) <EOL> list_fields . insert ( <NUM_LIT:7> , ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> if r . interactive : <EOL> current . response . s3 . crud_strings [ "<STR_LIT>" ] = Storage ( <EOL> label_create = T ( "<STR_LIT>" ) , <EOL> title_display = T ( "<STR_LIT>" ) , <EOL> title_list = T ( "<STR_LIT>" ) , <EOL> title_update = T ( "<STR_LIT>" ) , <EOL> label_list_button = T ( "<STR_LIT>" ) , <EOL> label_delete_button = T ( "<STR_LIT>" ) , <EOL> msg_record_created = T ( "<STR_LIT>" ) , <EOL> msg_record_modified = T ( "<STR_LIT>" ) , <EOL> msg_record_deleted = T ( "<STR_LIT>" ) , <EOL> msg_list_empty = T ( "<STR_LIT>" ) ) <EOL> settings . customise_vulnerability_data_resource = customise_vulnerability_data_resource <EOL> def customise_org_facility_resource ( r , tablename ) : <EOL> """<STR_LIT>""" <EOL> s3db = current . s3db <EOL> from s3 import IS_LOCATION , S3LocationSelector <EOL> levels = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> loc_field = r . table . location_id <EOL> loc_field . requires = IS_LOCATION ( ) <EOL> loc_field . widget = S3LocationSelector ( levels = levels , <EOL> show_address = True , <EOL> ) <EOL> list_fields = [ "<STR_LIT:name>" , <EOL> ( T ( "<STR_LIT>" ) , "<STR_LIT>" ) , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:email>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> from s3 import S3OptionsFilter , S3TextFilter <EOL> filter_widgets = [ S3TextFilter ( [ "<STR_LIT:name>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:email>" , <EOL> "<STR_LIT>" <EOL> ] , <EOL> label = T ( "<STR_LIT>" ) , <EOL> ) , <EOL> S3OptionsFilter ( "<STR_LIT>" , <EOL> header = True , <EOL> label = T ( "<STR_LIT>" ) , <EOL> ) , <EOL> ] <EOL> report_fields = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> report_options = Storage ( <EOL> rows = report_fields , <EOL> cols = [ ] , <EOL> fact = [ ( T ( "<STR_LIT>" ) , "<STR_LIT>" ) ] , <EOL> defaults = Storage ( rows = "<STR_LIT>" , <EOL> fact = "<STR_LIT>" , <EOL> totals = True , <EOL> chart = "<STR_LIT>" , <EOL> table = "<STR_LIT>" , <EOL> ) <EOL> ) <EOL> from s3 import S3SQLCustomForm , S3SQLInlineComponentMultiSelectWidget <EOL> crud_form = S3SQLCustomForm ( "<STR_LIT:name>" , <EOL> S3SQLInlineComponentMultiSelectWidget ( <EOL> "<STR_LIT>" , <EOL> field = "<STR_LIT>" , <EOL> ) , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:email>" , <EOL> "<STR_LIT>" , <EOL> ) <EOL> s3db . configure ( tablename , <EOL> crud_form = crud_form , <EOL> filter_widgets = filter_widgets , <EOL> list_fields = list_fields , <EOL> report_options = report_options , <EOL> ) <EOL> settings . customise_org_facility_resource = customise_org_facility_resource <EOL> settings . modules = OrderedDict ( [ <EOL> ( "<STR_LIT:default>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = False , <EOL> access = None , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> access = "<STR_LIT>" , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> module_type = None , <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = <NUM_LIT:1> , <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None , <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None , <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None <EOL> ) ) , <EOL> ( "<STR_LIT>" , Storage ( <EOL> name_nice = "<STR_LIT>" , <EOL> restricted = True , <EOL> module_type = None <EOL> ) ) , <EOL> ] ) </s>
