Begin the transition from INI to YAML
authorJeremy Stanley <fungi@yuggoth.org>
Thu, 8 May 2014 13:09:01 +0000 (13:09 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Thu, 8 May 2014 13:09:01 +0000 (13:09 +0000)
commitad96910b193b4033d456ecc5d54acacf37129bad
tree82f9fa579d1a76b61dbd5a9dae193129fce69e74
parent10649e74bed4a02087c48861c43ec04c30cec5e1
Begin the transition from INI to YAML

* lib/mudpy/data.py(DataFile.load): Temporarily turn this method into a
selector which calls different loader methods depending on the file
extension so that old INI and new YAML files can be intermixed during
the transition.
(DataFile.load_yaml): This new loader method handles YAML files.
(DataFile.load_mpy): This is basically the old DataFile.load method.
(DataFile.save,DataFile.is_writeable): Add some TODO reminders for the
YAML transition.

* lib/mudpy/misc.py(Element.__init__,Element.facets,Element.get)
(Element.getboolean): Add conditional branching around calls deeper into
mudpy.data which need different behavior depending on the underlying
file formats.

* requirements.txt: Start tracking Python module dependencies in this
new file, and add the pyyaml module as the first entry.
lib/mudpy/data.py
lib/mudpy/misc.py
requirements.txt [new file with mode: 0644]