Example #1
0
 def __init__(self,
              sections,
              data_asset_name=None,
              full_data_asset_identifier=None,
              renderer_type=None,
              page_title=None,
              utm_medium=None,
              cta_footer=None,
              expectation_suite_name=None,
              batch_kwargs=None):
     if not isinstance(sections, list) and all([
             isinstance(section, RenderedSectionContent)
             for section in sections
     ]):
         raise InvalidRenderedContentError(
             "RenderedDocumentContent requires a list of RenderedSectionContent for "
             "sections.")
     self.sections = sections
     self.data_asset_name = data_asset_name
     self.full_data_asset_identifier = full_data_asset_identifier
     self.renderer_type = renderer_type
     self.page_title = page_title
     self.utm_medium = utm_medium
     self.cta_footer = cta_footer
     self.expectation_suite_name = expectation_suite_name
     self.batch_kwargs = batch_kwargs
Example #2
0
 def __init__(self, content_blocks, section_name=None):
     if not isinstance(content_blocks, list) and all([
             isinstance(content_block, RenderedComponentContent)
             for content_block in content_blocks
     ]):
         raise InvalidRenderedContentError(
             "Rendered section content requires a list of RenderedComponentContent "
             "for content blocks.")
     self.content_blocks = content_blocks
     self.section_name = section_name