def wrap(controller, request, *args, **kwargs):
    installed = (False if (Option_Entity().get_one_by_key('app_installed') is False) else True)
    if installed:
        response = Response()
        return JsonResponse(response.send_private_failure([{'type': 'error', 'message': _('Error! Application is already installed.')}]))
    return function(controller, request, *args, **kwargs)
def wrap(controller, request, *args, **kwargs):
    installed = (False if (Option_Entity().get_one_by_key('app_installed') is False) else True)
    if installed:
        response = Response()
        return JsonResponse(response.send_private_failure([{'type': 'error', 'message': _('Error! Application is already installed.')}]))
    return function(controller, request, *args, **kwargs)