Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Choice

dynamic_choice_command(field_name)

Decorator that can be used to register a dynamic choice command.

Parameters

field_name : str

the value specified must match the field name of the associated Dynamic Choice field in the Controller's Universal Template

Returns

None

Examples

>>> @dynamic_choice_command("primary_choice_field")

...

>>>

...

def

...

primary_choice_command(self,

...

fields):

...

>>>     # Implementation omitted


Command

dynamic_command(command_name)

Decorator that can be used to register a dynamic command.

Parameters

command_name : str

the value specified must match the command name of the associated Dynamic Command defined in the Controller's Universal Template

Returns

None

Examples

>>> @dynamic_command("reset_environment")

...

>>>

...

def

...

reset_environment(self,

...

fields):

...

>>>     # Implementation omitted