The horizon.tables.actions Module

class horizon.tables.actions.Action(single_func=None, multiple_func=None, handle_func=None, attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.BaseAction

Represents an action which can be taken on this table’s data.

horizon.tables.actions.name

Required. The short name or “slug” representing this action. This name should not be changed at runtime.

horizon.tables.actions.verbose_name

A descriptive name used for display purposes. Defaults to the value of name with the first letter of each word capitalized.

horizon.tables.actions.verbose_name_plural

Used like verbose_name in cases where handles_multiple is True. Defaults to verbose_name with the letter “s” appended.

horizon.tables.actions.method

The HTTP method for this action. Defaults to POST. Other methods may or may not succeed currently.

horizon.tables.actions.requires_input

Boolean value indicating whether or not this action can be taken without any additional input (e.g. an object id). Defaults to True.

horizon.tables.actions.preempt

Boolean value indicating whether this action should be evaluated in the period after the table is instantiated but before the data has been loaded.

This can allow actions which don’t need access to the full table data to bypass any API calls and processing which would otherwise be required to load the table.

horizon.tables.actions.allowed_data_types

A list that contains the allowed data types of the action. If the datum’s type is in this list, the action will be shown on the row for the datum.

Default to be an empty list ([]). When set to empty, the action will accept any kind of data.

horizon.tables.actions.policy_rules

list of scope and rule tuples to do policy checks on, the composition of which is (scope, rule)

scope: service type managing the policy for action rule: string representing the action to be checked

for a policy that requires a single rule check:
policy_rules should look like
“((“compute”, “compute:create_instance”),)”
for a policy that requires multiple rule checks:
rules should look like
“((“identity”, “identity:list_users”),
(“identity”, “identity:list_roles”))”

At least one of the following methods must be defined:

horizon.tables.actions.single(self, data_table, request, object_id)

Handler for a single-object action.

horizon.tables.actions.multiple(self, data_table, request, object_ids)

Handler for multi-object actions.

horizon.tables.actions.handle(self, data_table, request, object_ids)

If a single function can work for both single-object and multi-object cases then simply providing a handle function will internally route both single and multiple requests to handle with the calls from single being transformed into a list containing only the single object id.

Action.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, 'get_param_name': <function get_param_name at 0x452b848>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__doc__': 'Represents an action which can be taken on this table\'s data.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A descriptive name used for display purposes. Defaults to the\n value of ``name`` with the first letter of each word capitalized.\n\n .. attribute:: verbose_name_plural\n\n Used like ``verbose_name`` in cases where ``handles_multiple`` is\n ``True``. Defaults to ``verbose_name`` with the letter "s" appended.\n\n .. attribute:: method\n\n The HTTP method for this action. Defaults to ``POST``. Other methods\n may or may not succeed currently.\n\n .. attribute:: requires_input\n\n Boolean value indicating whether or not this action can be taken\n without any additional input (e.g. an object id). Defaults to ``True``.\n\n .. attribute:: preempt\n\n Boolean value indicating whether this action should be evaluated in\n the period after the table is instantiated but before the data has\n been loaded.\n\n This can allow actions which don\'t need access to the full table data\n to bypass any API calls and processing which would otherwise be\n required to load the table.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Default to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n\n .. attribute:: policy_rules\n\n list of scope and rule tuples to do policy checks on, the\n composition of which is (scope, rule)\n\n scope: service type managing the policy for action\n rule: string representing the action to be checked\n\n for a policy that requires a single rule check:\n policy_rules should look like\n "(("compute", "compute:create_instance"),)"\n for a policy that requires multiple rule checks:\n rules should look like\n "(("identity", "identity:list_users"),\n ("identity", "identity:list_roles"))"\n\n At least one of the following methods must be defined:\n\n .. method:: single(self, data_table, request, object_id)\n\n Handler for a single-object action.\n\n .. method:: multiple(self, data_table, request, object_ids)\n\n Handler for multi-object actions.\n\n .. method:: handle(self, data_table, request, object_ids)\n\n If a single function can work for both single-object and\n multi-object cases then simply providing a ``handle`` function\n will internally route both ``single`` and ``multiple`` requests\n to ``handle`` with the calls from ``single`` being transformed\n into a list containing only the single object id.\n ', '__init__': <function __init__ at 0x452b938>}
Action.get_param_name()[source]

Returns the full POST parameter name for this action.

Defaults to {{ table.name }}__{{ action.name }}.

class horizon.tables.actions.BaseAction(**kwargs)[source]

Bases: horizon.utils.html.HTMLElement

Common base class for all Action classes.

BaseAction.allowed(request, datum)[source]

Determine whether this action is allowed for the current request.

This method is meant to be overridden with more specific checks.

BaseAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}
BaseAction.data_type_matched(datum)[source]

Method to see if the action is allowed for a certain type of data. Only affects mixed data type tables.

BaseAction.get_default_attrs()[source]

Returns a list of the default HTML attributes for the action. Defaults to returning an id attribute with the value {{ table.name }}__action_{{ action.name }}__{{ creation counter }}.

BaseAction.get_default_classes()[source]

Returns a list of the default classes for the action. Defaults to ["btn", "btn-small"].

BaseAction.get_policy_target(request, datum)[source]

Provide the target for a policy request.

This method is meant to be overridden to return target details when one of the policy checks requires them. E.g., {“user_id”: datum.id}

BaseAction.update(request, datum)[source]

Allows per-action customization based on current conditions.

This is particularly useful when you wish to create a “toggle” action that will be rendered differently based on the value of an attribute on the current row’s data.

By default this method is a no-op.

class horizon.tables.actions.BaseActionMetaClass[source]

Bases: type

Metaclass for adding all actions options from inheritance tree to action. This way actions can inherit from each other but still use the class attributes DSL. Meaning, all attributes of Actions are defined as class attributes, but in the background, it will be used as parameters for the initializer of the object. The object is then initialized clean way. Similar principle is used in DataTableMetaclass.

class horizon.tables.actions.BatchAction(**kwargs)[source]

Bases: horizon.tables.actions.Action

A table action which takes batch action on one or more objects. This action should not require user input on a per-object basis.

horizon.tables.actions.name

An internal name for this action.

horizon.tables.actions.action_present

String or tuple/list. The display forms of the name. Should be a transitive verb, capitalized and translated. (“Delete”, “Rotate”, etc.) If tuple or list - then setting self.current_present_action = n will set the current active item from the list(action_present[n])

You can pass a complete action name including ‘data_type’ by specifying ‘%(data_type)s’ substitution in action_present (“Delete %(data_type)s”). Otherwise a complete action name is a format of “<action> <data_type>”. <data_type> is determined based on the number of items. By passing a complete action name you allow translators to control the order of words as they want.

horizon.tables.actions.action_past

String or tuple/list. The past tense of action_present. (“Deleted”, “Rotated”, etc.) If tuple or list - then setting self.current_past_action = n will set the current active item from the list(action_past[n])

horizon.tables.actions.data_type_singular

A display name for the type of data that receives the action. (“Key Pair”, “Floating IP”, etc.)

horizon.tables.actions.data_type_plural

Optional plural word for the type of data being acted on. Defaults to appending ‘s’. Relying on the default is bad for translations and should not be done.

horizon.tables.actions.success_url

Optional location to redirect after completion of the delete action. Defaults to the current page.

BatchAction.action(request, datum_id)[source]

Required. Accepts a single object id and performs the specific action.

Return values are discarded, errors raised are caught and logged.

BatchAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x451dc80>, 'get_success_url': <function get_success_url at 0x451faa0>, 'get_param_name': <function get_param_name at 0x452b848>, 'allowed': <function allowed at 0x452bc08>, 'handle': <function handle at 0x451fc08>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__init__': <function __init__ at 0x451df50>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x451dc08>, '_get_action_name': <function _get_action_name at 0x451dcf8>, '__repr__': <function __repr__ at 0x452b758>, 'action': <function action at 0x451de60>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, '__doc__': 'A table action which takes batch action on one or more\n objects. This action should not require user input on a\n per-object basis.\n\n .. attribute:: name\n\n An internal name for this action.\n\n .. attribute:: action_present\n\n String or tuple/list. The display forms of the name.\n Should be a transitive verb, capitalized and translated. ("Delete",\n "Rotate", etc.) If tuple or list - then setting\n self.current_present_action = n will set the current active item\n from the list(action_present[n])\n\n You can pass a complete action name including \'data_type\' by specifying\n \'%(data_type)s\' substitution in action_present ("Delete %(data_type)s").\n Otherwise a complete action name is a format of "<action> <data_type>".\n <data_type> is determined based on the number of items.\n By passing a complete action name you allow translators to control\n the order of words as they want.\n\n .. attribute:: action_past\n\n String or tuple/list. The past tense of action_present. ("Deleted",\n "Rotated", etc.) If tuple or list - then\n setting self.current_past_action = n will set the current active item\n from the list(action_past[n])\n\n .. attribute:: data_type_singular\n\n A display name for the type of data that receives the\n action. ("Key Pair", "Floating IP", etc.)\n\n .. attribute:: data_type_plural\n\n Optional plural word for the type of data being acted\n on. Defaults to appending \'s\'. Relying on the default is bad\n for translations and should not be done.\n\n .. attribute:: success_url\n\n Optional location to redirect after completion of the delete\n action. Defaults to the current page.\n '}
BatchAction.get_success_url(request=None)[source]

Returns the URL to redirect to after a successful action.

BatchAction.handle(table, request, obj_ids)[source]
BatchAction.update(request, datum)[source]

Switches the action verbose name, if needed.

class horizon.tables.actions.DeleteAction(**kwargs)[source]

Bases: horizon.tables.actions.BatchAction

Doc missing.

DeleteAction.action(request, obj_id)[source]
DeleteAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x451dc80>, 'get_success_url': <function get_success_url at 0x451faa0>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, 'allowed': <function allowed at 0x452bc08>, 'handle': <function handle at 0x451fc08>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__init__': <function __init__ at 0x451fb18>, 'name': 'delete', 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x451f7d0>, 'get_param_name': <function get_param_name at 0x452b848>, '_allowed': <function _allowed at 0x451dc08>, '_get_action_name': <function _get_action_name at 0x451dcf8>, '__repr__': <function __repr__ at 0x452b758>, 'action': <function action at 0x451fa28>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x451f320>}
DeleteAction.delete(request, obj_id)[source]
DeleteAction.get_default_classes()[source]
DeleteAction.name = 'delete'
class horizon.tables.actions.FilterAction(**kwargs)[source]

Bases: horizon.tables.actions.BaseAction

A base class representing a filter action for a table.

horizon.tables.actions.name

The short name or “slug” representing this action. Defaults to "filter".

horizon.tables.actions.verbose_name

A descriptive name used for display purposes. Defaults to the value of name with the first letter of each word capitalized.

horizon.tables.actions.param_name

A string representing the name of the request parameter used for the search term. Default: "q".

FilterAction.assign_type_string(table, data, type_string)[source]
FilterAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x452ba28>, 'get_param_name': <function get_param_name at 0x452b398>, 'allowed': <function allowed at 0x452bc08>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__init__': <function __init__ at 0x452b410>, 'data_type_filter': <function data_type_filter at 0x452b5f0>, 'name': 'filter', 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452b320>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, 'filter': <function filter at 0x452b578>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'assign_type_string': <function assign_type_string at 0x452b6e0>, '__doc__': 'A base class representing a filter action for a table.\n\n .. attribute:: name\n\n The short name or "slug" representing this action. Defaults to\n ``"filter"``.\n\n .. attribute:: verbose_name\n\n A descriptive name used for display purposes. Defaults to the\n value of ``name`` with the first letter of each word capitalized.\n\n .. attribute:: param_name\n\n A string representing the name of the request parameter used for the\n search term. Default: ``"q"``.\n\n .. attribute: filter_type\n\n A string representing the type of this filter. Default: ``"query"``.\n\n .. attribute: needs_preloading\n\n If True, the filter function will be called for the initial\n GET request with an empty ``filter_string``, regardless of the\n value of ``method``.\n '}
FilterAction.data_type_filter(table, data, filter_string)[source]
FilterAction.filter(table, data, filter_string)[source]

Provides the actual filtering logic.

This method must be overridden by subclasses and return the filtered data.

FilterAction.get_default_classes()[source]
FilterAction.get_param_name()[source]

Returns the full query parameter name for this action.

Defaults to {{ table.name }}__{{ action.name }}__{{ action.param_name }}.

FilterAction.name = 'filter'
class horizon.tables.actions.FixedFilterAction(**kwargs)[source]

Bases: horizon.tables.actions.FilterAction

A filter action with fixed buttons.

FixedFilterAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x452ba28>, 'get_fixed_buttons': <function get_fixed_buttons at 0x451db90>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, 'allowed': <function allowed at 0x452bc08>, 'categorize': <function categorize at 0x451ded8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__init__': <function __init__ at 0x451dde8>, 'filter': <function filter at 0x451dd70>, 'name': 'filter', 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452b320>, 'get_param_name': <function get_param_name at 0x452b398>, 'data_type_filter': <function data_type_filter at 0x452b5f0>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'assign_type_string': <function assign_type_string at 0x452b6e0>, '__doc__': 'A filter action with fixed buttons.'}
FixedFilterAction.categorize(table, images)[source]

Override to separate images into categories.

Return a dict with a key for the value of each fixed button, and a value that is a list of images in that category.

FixedFilterAction.filter(table, images, filter_string)[source]
FixedFilterAction.get_fixed_buttons()[source]

Returns a list of dictionaries describing the fixed buttons to use for filtering.

Each list item should be a dict with the following keys:

  • text: Text to display on the button
  • icon: Icon class for icon element (inserted before text).
  • value: Value returned when the button is clicked. This value is passed to filter() as filter_string.
class horizon.tables.actions.LinkAction(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.BaseAction

A table action which is simply a link rather than a form POST.

horizon.tables.actions.name

Required. The short name or “slug” representing this action. This name should not be changed at runtime.

horizon.tables.actions.verbose_name

A string which will be rendered as the link text. (Required)

horizon.tables.actions.url

A string or a callable which resolves to a url to be used as the link target. You must either define the url attribute or override the get_link_url method on the class.

horizon.tables.actions.allowed_data_types

A list that contains the allowed data types of the action. If the datum’s type is in this list, the action will be shown on the row for the datum.

Defaults to be an empty list ([]). When set to empty, the action will accept any kind of data.

LinkAction.base_options = {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'link', 'get_link_url': <function get_link_url at 0x452b9b0>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x452bc80>, 'get_default_classes': <function get_default_classes at 0x452baa0>, 'update': <function update at 0x452ba28>, 'get_policy_target': <function get_policy_target at 0x452bcf8>, '_allowed': <function _allowed at 0x452bb90>, '__repr__': <function __repr__ at 0x452b758>, 'allowed': <function allowed at 0x452bc08>, 'get_default_attrs': <function get_default_attrs at 0x452b050>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x452bd70>}, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n ', '__init__': <function __init__ at 0x452b7d0>}
LinkAction.get_link_url(datum=None)[source]

Returns the final URL based on the value of url.

If url is callable it will call the function. If not, it will then try to call reverse on url. Failing that, it will simply return the value of url as-is.

When called for a row action, the current row data object will be passed as the first parameter.

LinkAction.name = 'link'
class horizon.tables.actions.UpdateAction[source]

Bases: object

A table action for cell updates by inline editing.

UpdateAction.action(request, datum, obj_id, cell_name, new_cell_value)[source]
UpdateAction.action_past = <django.utils.functional.__proxy__ object at 0x48b2e50>
UpdateAction.action_present = <django.utils.functional.__proxy__ object at 0x48b2d50>
UpdateAction.allowed(request, datum, cell)[source]

Determine whether updating is allowed for the current request.

This method is meant to be overridden with more specific checks. Data of the row and of the cell are passed to the method.

UpdateAction.data_type_singular = 'update'
UpdateAction.name = 'update'
UpdateAction.update_cell(request, datum, obj_id, cell_name, new_cell_value)[source]

Method for saving data of the cell.

This method must implements saving logic of the inline edited table cell.

Previous topic

The horizon.tabs Module

Next topic

The horizon.tables.base Module

This Page