How to use the diazo.utils.pkg_parse function in diazo

To help you get started, we’ve selected a few diazo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plone / diazo / lib / diazo / wsgi.py View on Github external
def get_filter_middleware(self):
        tree = pkg_parse('filter_xhtml.xsl')
        return XSLTMiddleware(self.app, self.global_conf,
                tree=tree,
                read_network=False,
                read_file=False,
                update_content_length=self.update_content_length,
                ignored_extensions=self.ignored_extensions,
                environ_param_map={'diazo.filter_xpath': 'xpath'},
                doctype='',
                content_type=self.content_type,
                unquoted_params=['xpath'],
            )