Use question.id instead of question.prompt for answer indexing
authorW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 15:08:52 +0000 (10:08 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 15:08:52 +0000 (10:08 -0500)
commitb514998be5a3b4f222b58995e3caa483a0b4e103
treec670977ac802c03a3c5e251350ae34370f3d41c1
parentaf7be28781404559878ce578c99e8b48db4f8792
Use question.id instead of question.prompt for answer indexing

This decouples the keying from the prompt, which is useful if you want
to use another value for the `id` (e.g. a question number).

If `id` is not specified, it defaults to `prompt`.
quizzer/answerdb.py
quizzer/question.py
quizzer/ui/cli.py