lib/dbtexmf/xslt/__init__.py
raw| 1 | class XsltSetup: |
| 2 | """ |
| 3 | Central XSLT setup, filled by the XML configuration |
| 4 | """ |
| 5 | def __init__(self): |
| 6 | self.command_pool = None |
| 7 | |
| 8 | def prepend_pool(self, pool): |
| 9 | if self.command_pool: |
| 10 | self.command_pool.prepend(pool) |
| 11 | else: |
| 12 | self.command_pool = pool |
| 13 | |
| 14 | |
| 15 | _xslt_setup = XsltSetup() |
| 16 | |
| 17 | def xslt_setup(): |
| 18 | global _xslt_setup |
| 19 | return _xslt_setup |
| 20 |