Пример #1
0
def _check_public_announcements(logger):
    try:
        announcement = get_external_resource(EXTERNAL_RESOURCE_PUBLIC_ANNOUNCEMENTS)
        if announcement:
            logger.info(announcement)
    except Exception as e:
        logger.warning("Impossible to check announcements: {0}".format(e))
Пример #2
0
def announcements():
    return json.dumps(
        external_resources_manager.get_external_resource(
            EXTERNAL_RESOURCE_PUBLIC_ANNOUNCEMENTS, catch_exception=True))
Пример #3
0
def user_feedback():
    return json.dumps(
        external_resources_manager.get_external_resource(
            EXTERNAL_RESOURCE_CURRENT_USER_FORM, catch_exception=True))