handlers.global_application_handler_commented

class GlobalApplicationHandlerCommented(handlers.eventhandler.EventHandler):

Whenever somebody updates an Application, we check if it's a "Global"-tagged application.
If this is the case, we link all organizations to that application.

Same as GlobalApplicationHandler, but without runtime configuration, and with detailed explanation in the source code.

name = 'Global Applications Auto-Linking - Simple'
description = 'Links global-tagged Applications to all global-tagged Organizations.'
conditions = {'event_types': ['FactSheetUpdatedEvent'], 'fs_types': ['Application']}
config_template = {}
def handle(self, event, application, **kwargs):

Called automatically whenever a FactSheetUpdated event comes in via webhook.