Extending PyYAML loader with a custom tag
John Anderson <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CAOdFaDU2uNTdf9vk1hZ=XzXrvPsqpF+N7=5cTPL71VEDXnfn0g@mail.gmail.com> |
I want to support the following syntax:
database:
type: postgres
!include logging.yml
and this:
database:
type: !include logging.yml
I have been able to get the second one to work by declaring the following
code:
Loader.add_constructor('!includes', include_func)
But I can't get the first example to work where it basically just appends
logging.yml to the bottom of the file it is included in.
Is this possible?
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core