import splunk.entity as entity import splunk.auth import splunk.models.dashboard as sm_dashboard import splunk.models.dashboard_panel as sm_dashboard_panel import splunk.models.saved_search as sm_saved_search import splunk.search import splunk.search.searchUtils from splunk.util import normalizeBoolean import splunk.pdf.pdfgen_views as pv import splunk.pdf.pdfgen_utils as pu import splunk.pdf.pdfgen_chart as pc import splunk.pdf.pdfrenderer as pdfrenderer logger = pu.getLogger() ERROR_MSG = _("Unable to render PDF.") DEFAULT_FEED_COUNT = 500 DEFAULT_TIMEOUT = 3600 # in seconds DEFAULT_MAX_ROWS_PER_TABLE = 1000 DEFAULT_INCLUDE_SPLUNK_LOGO = True DEFAULT_PAPER_SIZE = 'letter' DEFAULT_PAPER_ORIENTATION = 'portrait' class ArgError(Exception): def __init__(self, message): self.message = message def __str__(self): return repr(self.value)
import splunk.models.dashboard_panel as sm_dashboard_panel import splunk.models.saved_search as sm_saved_search import splunk.search import splunk.search.searchUtils from splunk.util import normalizeBoolean, toDefaultStrings import splunk.pdf.pdfgen_views as pv import splunk.pdf.pdfgen_utils as pu import splunk.pdf.pdfgen_chart as pc import splunk.pdf.pdfgen_table as pt import splunk.pdf.pdfrenderer as pdfrenderer from builtins import range, filter from gettext import gettext as _ logger = pu.getLogger() ERROR_MSG = _("Unable to render PDF.") DEFAULT_FEED_COUNT = 1000 DEFAULT_TIMEOUT = 3600 # in seconds DEFAULT_MAX_ROWS_PER_TABLE = 1000 DEFAULT_INCLUDE_SPLUNK_LOGO = True DEFAULT_PAPER_SIZE = 'letter' DEFAULT_PAPER_ORIENTATION = 'portrait' # Change the default lxml parsing to not allow imported entities import splunk.lockdownlxmlparsing class ArgError(Exception): def __init__(self, message):