handlers.sorted_resources_handler

class SortedResourcesHandler(handlers.eventhandler.EventHandler):

Activate this to keep the "Resources" tab sorted by category + name. No configuration required.

name = 'Sorted Resources'
description = "Activate this to keep the 'Resources' tab sorted by category + name. No configuration required."
conditions = {'event_types': ['DocumentCreatedEvent', 'DocumentUpdatedEvent']}
config_template = {}
def handle(self, event, fs, **kwargs):

Called automatically whenever a FactSheetCreated or FactSheetUpdated event comes in via webhook.