Esempio n. 1
0
def get_context_builder():
    return get_class_instance(APP_ERROR_CONTEXT_BUILDER_MODULE,
                              ContextBuilderMixin, DefaultDjangoContextBuilder,
                              "ContextBuilder")
Esempio n. 2
0
def get_notification_module():
    if APP_ERROR_RECIPIENT_EMAIL and APP_ERROR_EMAIL_SENDER:
        return get_class_instance(APP_ERROR_NOTIFICATION_MODULE,
                                  NotificationMixin, DjangoNotification,
                                  "Notification")
Esempio n. 3
0
def get_masking_module():
    return get_class_instance(APP_ERROR_MASKING_MODULE, MaskingMixin, Masking,
                              'Masking', APP_ERROR_MASK_WITH,
                              APP_ERROR_MASKED_KEY_HAS)
Esempio n. 4
0
def get_ticketing_module():
    return get_class_instance(APP_ERROR_TICKETING_MODULE, TicketingMixin, None,
                              'Ticketing')
Esempio n. 5
0
def get_view_permission():
    return get_class_instance(APP_ERROR_VIEW_PERMISSION, ViewPermissionMixin,
                              DefaultDjangoViewPermission, "ViewPermission")