Return the Document structure for the View
(self)
| 54 | return cls(blocks=app_template.blocks) |
| 55 | |
| 56 | def get_dom(self) -> ElementT: |
| 57 | """Return the Document structure for the View""" |
| 58 | # internal debugging method |
| 59 | from datapane.processors.file_store import DummyFileEntry, FileStore |
| 60 | |
| 61 | from .xml_visitor import XMLBuilder |
| 62 | |
| 63 | builder = XMLBuilder(FileStore(DummyFileEntry)) |
| 64 | self.accept(builder) |
| 65 | return builder.get_root() |
| 66 | |
| 67 | def get_dom_str(self) -> str: |
| 68 | dom = self.get_dom() |