[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Ideas about storing questions/answers for a boardGame.



Have you looked at YAML? It is quite good for configuration or other
data of moderate complexity, and reads a lot like plain text, but with
python-like indentation.

http://pyyaml.org

Also, for editing, if you do go for a custom tool (which is definitely
worthwhile in some cases--I'm not sure about this one), an easy way to
do it is to write a small web app, using e.g. SimpleHTTPServer from the
standard library. That lets the browser cope with editing and layout,
but keeps the fields safely separate.

Because pyYAML takes care of escaping etc, there should be no way a user
can break the document structure.

Douglas