Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Functions

update_output_fields(fields)

Propagate state changes back to the associated extension instance in the Controller.

  • Can be called at any time by an Extension instance.
  • Any/all output fields defined in the associated Extension Template can be updated using this method.

Parameters

fields : dict

The fields parameter expects a dictionary of output fields to be sent back to the controller for the associated Extension instance. Field names are implementation dependent and correlate with the Universal Template field names in the Controller's Template definition for the associated task.

Returns

None


This method is equivalent to the update_extension_status method from the UniversalExtension Class with the added functionality that it can be used from external modules.

Examples

>>> from universal_extension import ui

>>> fields = {"foo": "bar"}

>>> ui.update_output_fields(fields)

  • No labels