8.2.3.2.24. form¶
- Base.form(depth=1, node_data=none, node_function=none, directory=None, sites=None, run=True, view=True, get_context=none, get_data=none, subsite_idle_timeout=600, basic_app_config=None, debug=False, stripe_event_handler=<function Base.<lambda>>, verify_file_handler=<function Base.<lambda>>)[source]
Creates a dispatcher Form Flask app.
- Parameters:
depth (int, optional) – Depth of sub-dispatch API. If negative all levels are configured.
node_data (tuple[str], optional) – Data node attributes to produce API.
node_function (tuple[str], optional) – Function node attributes produce API.
directory (str, optional) – Where is the generated Flask app root located?
sites (set[Site], optional) – A set of
Siteto maintain alive the backend server.run (bool, optional) – Run the backend server?
view (bool, optional) – Open the url site with the sys default opener.
get_context (function | dict, optional) – Function to pass extra data as form context.
get_data (function | dict, optional) – Function to initialize the formdata.
subsite_idle_timeout (int, optional) – Idle timeout of a debug subsite in seconds.
basic_app_config (object, optional) – Flask app config object.
debug (bool, optional) – Enable debug chart backend server?
stripe_event_handler (function, optional) – Stripe event handler function.
verify_file_handler (function, optional) – File verification handler function.
- Returns:
A FormMap or a Site if sites is None and run or view is True.
- Return type: