def do_flash(message, category=None):
 if config_value('FLASH_MESSAGES'):
  flash(message, category)

def do_flash ( message , category = None ) : if config_value ( 'FLASH_MESSAGES' ) : flash ( message , category )
flash a message depending on if the flash_messages configuration value is set .