tw2.sqla

DbFormPage
A page that contains a form with database synchronisation. The fetch_data method loads a record from the database, based on the primary key in the URL (no parameters for a new record). The validated_request method saves the data to the database.
  • children
    • Children specified for this widget will be passed to the child
  • id_suffix
    • Suffix to append to compound IDs
  • content_type
    • Content type header

DbListForm
A page that contains a list form with database synchronisation. The fetch_data method loads a full table from the database. The validated_request method saves the data to the database.
  • children
    • Children specified for this widget will be passed to the child
  • id_suffix
    • Suffix to append to compound IDs
  • content_type
    • Content type header

DbListPage
A page that contains a list with database synchronisation. The fetch_data method loads a full table from the database; there is no submit or write capability.
  • children
    • Children specified for this widget will be passed to the child
  • id_suffix
    • Suffix to append to compound IDs
  • content_type
    • Content type header
  • newlink
    • New item widget

DbLinkField
  • link
    • Path to link to
  • text
    • Link text

DbSelectionField
  • prompt_text
    • Text to prompt user to select an option.

DbSingleSelectField
  • prompt_text
    • Text to prompt user to select an option.

DbRadioButtonList
  • prompt_text
    • Text to prompt user to select an option.

DbCheckBoxList
  • prompt_text
    • Text to prompt user to select an option.
  • item_validator
    • Validator that applies to each item

DbCheckBoxTable
  • prompt_text
    • Text to prompt user to select an option.
  • item_validator
    • Validator that applies to each item
  • cols
    • Number of columns

NoWidget

AutoTableForm
  • id_suffix
    • Suffix to append to compound IDs
  • help_msg
    • This message displays as a div inside the form
  • action
    • URL to submit form data to. If this is None, the form submits to the same URL it was displayed on.
  • method
    • HTTP method used for form submission.
  • submit
    • Submit button widget. If this is None, no submit button is generated.
  • buttons
    • List of additional buttons to be placed at the bottom of the form
  • policy
    • WidgetPolicy to use

AutoGrowingGrid
  • child
    • Child for this widget. The child must have no id.
  • min_reps
    • Minimum number of repetitions
  • policy
    • WidgetPolicy to use

AutoViewGrid
  • child
    • Child for this widget. The child must have no id.
  • repetitions
    • Fixed number of repetitions. If this is None, it dynamically determined, based on the length of the value list.
  • min_reps
    • Minimum number of repetitions
  • max_reps
    • Maximum number of repetitions
  • extra_reps
    • Number of extra repeitions, beyond the length of the value list.
  • policy
    • WidgetPolicy to use

AutoViewFieldSet
  • id_suffix
    • Suffix to append to compound IDs
  • legend
    • Text for the legend
  • policy
    • WidgetPolicy to use

AutoEditFieldSet
  • id_suffix
    • Suffix to append to compound IDs
  • legend
    • Text for the legend
  • policy
    • WidgetPolicy to use

AutoListPage
  • child
    • Child for this widget.
  • children
    • Children specified for this widget will be passed to the child
  • id_suffix
    • Suffix to append to compound IDs
  • content_type
    • Content type header
  • newlink
    • New item widget

AutoListPageEdit
  • child
    • Child for this widget.
  • children
    • Children specified for this widget will be passed to the child
  • id_suffix
    • Suffix to append to compound IDs
  • content_type
    • Content type header
  • newlink
    • New item widget