quizzer: Get upgrade-from-v0.2-to-v0.3 methods in place
authorW. Trevor King <wking@tremily.us>
Thu, 7 Mar 2013 22:17:01 +0000 (17:17 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 7 Mar 2013 22:17:01 +0000 (17:17 -0500)
quizzer/answerdb.py
quizzer/quiz.py

index a47fe223e735fe2d091ea22329da8000ed52dc07..8671da1d463e647a16ebc675dd3befedae14e1a5 100644 (file)
@@ -86,3 +86,5 @@ class AnswerDatabase (dict):
     def _upgrade_from_0_1(self, data):
         data['version'] = __version__
         return data
+
+    _upgrade_from_0_2 = _upgrade_from_0_1
index ae1702eed427ff7e46d5738f4d2c903629f433d0..70cc7ffd4bcc78f28721bcb9d17ae15a9cca6dbc 100644 (file)
@@ -95,3 +95,5 @@ class Quiz (list):
     def _upgrade_from_0_1(self, data):
         data['version'] = __version__
         return data
+
+    _upgrade_from_0_2 = _upgrade_from_0_1