Module Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd NameLoad CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad CompareEq AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Num Num attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr ImportFrom alias Import alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword NameLoad keyword Dict If CompareIn AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad If CompareNotEq NameLoad Str body If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq NameLoad Str body Continue TryExcept body Assign NameStore Call NameLoad BinOpMod NameLoad NameLoad keyword ListLoad Str Str handlers ExceptHandler type NameLoad body Continue orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BoolOpOr NameLoad AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ImportFrom alias Expr Call NameLoad Str NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str Lambda arguments args NameParam defaults kwarg Call NameLoad Call NameLoad keyword Str keyword Dict Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr Str body ImportFrom alias Expr Call NameLoad Str Call NameLoad keyword TupleLoad Str Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn NameLoad TupleLoad NameLoad Str Str Str Str Str body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore BoolOpAnd Call NameLoad NameLoad Str NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Str Expr Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad Call NameLoad Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict NameLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad keyword ListLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse If CompareNotIn NameLoad TupleLoad Str Str Str Str Str body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad
N/A N/A 
    Common Utilities run most requests
 N/A N/A request is_local N/A N/A f N/A N/A get_vars get format None N/A auth_token N/A N/A get_vars get subscription None N/A N/A auth_token N/A f msg N/A N/A rtable N/A s3db pr_subscription_resource N/A stable N/A s3db pr_subscription N/A utable N/A s3db pr_person_user N/A join N/A N/A N/A stable on N/A N/A stable id N/A rtable subscription_id N/A N/A utable on N/A N/A utable pe_id N/A stable pe_id N/A user N/A N/A N/A N/A N/A db N/A N/A rtable auth_token auth_token select N/A utable user_id join join limitby N/A 0 1 first N/A user N/A N/A N/A N/A auth s3_impersonate N/A user user_id N/A N/A N/A N/A auth s3_impersonate None N/A N/A N/A auth s3_set_roles N/A N/A N/A N/A N/A auth permission has_permission read N/A N/A N/A N/A N/A auth permission fail N/A N/A N/A s3base s3_get_utc_offset s3layouts * N/A s3menus default_menus N/A S3MainMenu N/A default_menus S3MainMenu N/A S3OptionsMenu N/A default_menus S3OptionsMenu N/A N/A current menu N/A Storage oauth options None override N/A N/A N/A N/A N/A auth permission format html N/A N/A theme N/A N/A settings get_theme N/A package N/A applications.%s.modules.templates.%%s.menus appname N/A menu_locations N/A N/A N/A theme default N/A N/A N/A s3 theme_location N/A N/A theme N/A %s.%s N/A N/A N/A s3 theme_location N/A -1 theme N/A N/A N/A menu_locations append theme N/A N/A template N/A N/A settings get_template N/A N/A isinstance template N/A tuple list N/A N/A N/A N/A menu_locations extend template N/A N/A N/A N/A menu_locations append template N/A name menu_locations N/A N/A N/A name default N/A N/A N/A N/A N/A deployment_menus N/A __import__ N/A package name fromlist N/A S3MainMenu S3OptionsMenu N/A N/A N/A ImportError N/A N/A N/A N/A N/A hasattr deployment_menus S3MainMenu N/A N/A S3MainMenu N/A deployment_menus S3MainMenu N/A N/A hasattr deployment_menus S3OptionsMenu N/A N/A S3OptionsMenu N/A deployment_menus S3OptionsMenu N/A main N/A N/A S3MainMenu menu N/A N/A main None N/A menu N/A current menu N/A N/A menu N/A main main N/A s3_menu_dict N/A s3_rest_controller N/A N/A prefix resourcename N/A None None attr N/A N/A 
        Helper function to apply the S3Resource REST interface

        @param prefix: the application prefix
        @param resourcename: the resource name (without prefix)
        @param attr: additional keyword parameters

        Any keyword parameters will be copied into the output dict (provided
        that the output is a dict). If a keyword parameter is callable, then
        it will be invoked, and its return value will be added to the output
        dict instead. The callable receives the S3Request as its first and
        only parameter.

        CRUD can be configured per table using:

            s3db.configure(tablename, **attr)

        *** Redirection:

        create_next             URL to redirect to after a record has been created
        update_next             URL to redirect to after a record has been updated
        delete_next             URL to redirect to after a record has been deleted

        *** Form configuration:

        list_fields             list of names of fields to include into list views
        subheadings             Sub-headings (see separate documentation)
        listadd                 Enable/Disable add-form in list views

        *** CRUD configuration:

        editable                Allow/Deny record updates in this table
        deletable               Allow/Deny record deletions in this table
        insertable              Allow/Deny record insertions into this table
        copyable                Allow/Deny record copying within this table

        *** Callbacks:

        create_onvalidation     Function for additional record validation on create
        create_onaccept         Function after successful record insertion

        update_onvalidation     Function for additional record validation on update
        update_onaccept         Function after successful record update

        onvalidation            Fallback for both create_onvalidation and update_onvalidation
        onaccept                Fallback for both create_onaccept and update_onaccept
        ondelete                Function after record deletion
     N/A attr N/A N/A settings customise_controller N/A %s_%s N/A N/A prefix N/A request controller N/A resourcename N/A request function attr N/A r N/A s3_request prefix resourcename N/A N/A N/A r customise_resource N/A set_handler N/A r set_handler s3db.cms S3CMS N/A N/A set_handler cms S3CMS N/A N/A set_handler compose N/A s3base S3Compose N/A N/A set_handler copy N/A N/A N/A r N/A attr N/A redirect N/A URL args create vars N/A from_record N/A r id N/A N/A set_handler deduplicate N/A s3base S3Merge N/A N/A set_handler filter N/A s3base S3Filter N/A N/A set_handler hierarchy N/A s3base S3HierarchyCRUD N/A N/A set_handler import N/A s3base S3Importer N/A N/A set_handler xform N/A s3base S3XForms N/A N/A set_handler map N/A s3base S3Map N/A N/A set_handler profile N/A s3base S3Profile N/A N/A set_handler report N/A s3base S3Report N/A N/A set_handler report N/A s3base S3Report transform True N/A N/A set_handler timeplot N/A s3base S3TimePlot N/A N/A set_handler grouped N/A s3base S3GroupedItemsReport N/A N/A set_handler search_ac N/A s3base search_ac N/A N/A set_handler summary N/A s3base S3Summary N/A method N/A r method N/A N/A N/A method import N/A N/A r representation pdf N/A s3.s3pdf S3PDF N/A N/A set_handler import N/A S3PDF http N/A GET POST representation pdf N/A N/A N/A N/A s3base S3OrgRoleManager set_method r N/A output N/A r attr N/A N/A N/A isinstance output dict N/A method N/A None report search datatable datatable_f summary N/A N/A N/A N/A s3 actions None N/A N/A N/A prefix name table tablename N/A N/A r target N/A authorised N/A s3_has_permission update tablename N/A N/A N/A r component N/A N/A s3db has_components table N/A N/A native N/A N/A output get native False N/A N/A native False N/A get_config N/A s3db get_config N/A listadd N/A get_config tablename listadd True N/A editable N/A N/A get_config tablename editable True N/A N/A N/A N/A auth permission ownership_required update table N/A deletable N/A get_config tablename deletable True N/A copyable N/A get_config tablename copyable False N/A open_url N/A N/A N/A N/A N/A r resource crud _linkto r authorised authorised update editable native native [id] N/A N/A s3_action_buttons r deletable deletable copyable copyable editable editable read_url open_url update_url open_url N/A N/A native N/A listadd N/A s3_has_permission create tablename N/A N/A label N/A N/A N/A s3base S3CRUD crud_string tablename label_create N/A hook N/A N/A N/A r resource components N/A name N/A fkey N/A %s.%s N/A name N/A hook fkey N/A get_vars_copy N/A N/A get_vars copy N/A N/A N/A get_vars_copy update N/A fkey N/A N/A r record N/A N/A hook fkey N/A url N/A URL prefix name args N/A create vars get_vars_copy N/A add_btn N/A A label _href url _class action-btn N/A N/A N/A output update add_btn add_btn N/A N/A N/A method N/A import review approve reject deduplicate N/A N/A N/A s3 actions None N/A N/A get_vars tour N/A N/A output N/A N/A s3db tour_builder output N/A output N/A N/A N/A current rest_controller s3_rest_controller