3 def report_error(message):
5 Return a dictionary with a command to display 'message'
7 return {'mode': 'Error', 'status': message}
10 def redirect_to_url(url):
12 Return a bcm dictionary with a command to redirect to 'url'
14 return {'mode': 'redirect', 'url': url}
17 def autofill(field, value):
19 Return a bcm dictionary with a command to automatically fill the
20 corresponding "field" with "value"
22 return {'mode': 'autofill', 'field': field, 'value': value}