aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-27 12:27:16 -0400
committerW. Trevor King <wking@tremily.us>2012-10-27 12:27:16 -0400
commitcf2dccfb50ccddb1d0a308f8f15f0a9362c57e2b (patch)
treef7531cdd1726571e42c3ad791f0152339f37b4b0
parentc9526ff928eea8d35d1b8dcf0751711c0b808e9c (diff)
downloadbugseverywhere-cf2dccfb50ccddb1d0a308f8f15f0a9362c57e2b.tar.gz
storage:util:upgrade: use YAML parser to get BE Tree 1 0 settings
This fixes the "Bugs Everywhere Tree 1 0" -> "Bugs Everywhere Directory v1.1" upgrade broken by the switch to JSON in: commit a95915c6c7d6a4e29c1e5547580e0c1fed2467e1 Author: W. Trevor King <wking@tremily.us> Date: Mon Sep 17 08:14:21 2012 -0400 storage:util:mapfile: convert YAML settings to JSON.
-rw-r--r--libbe/storage/util/upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/storage/util/upgrade.py b/libbe/storage/util/upgrade.py
index 98091f2..ddc434a 100644
--- a/libbe/storage/util/upgrade.py
+++ b/libbe/storage/util/upgrade.py
@@ -214,7 +214,7 @@ class Upgrade_1_0_to_1_1 (Upgrader):
path_list = c_path + [comment_uuid, 'values']
path = self.get_path(*path_list)
self._upgrade_mapfile(path)
- settings = mapfile.parse(
+ settings = parse_yaml_mapfile(
encoding.get_file_contents(path))
if 'From' in settings:
settings['Author'] = settings.pop('From')