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))
def announcements(): return json.dumps( external_resources_manager.get_external_resource( EXTERNAL_RESOURCE_PUBLIC_ANNOUNCEMENTS, catch_exception=True))
def user_feedback(): return json.dumps( external_resources_manager.get_external_resource( EXTERNAL_RESOURCE_CURRENT_USER_FORM, catch_exception=True))