diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-27 15:58:29 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-27 15:58:29 -0500 |
commit | 214c4317bb90684dcfdab4d2402daa66fbad2e77 (patch) | |
tree | 8935072ad4ce8ddee2a7056412a7a89c96acf359 /libbe/bug.py | |
parent | 89b7a1411e4658e831f5d635534b24355dbb941d (diff) | |
download | bugseverywhere-214c4317bb90684dcfdab4d2402daa66fbad2e77.tar.gz |
Fixed libbe.storage.util.upgrade
Note that it only upgrades on-disk versions, so you can't use a
non-VCS storage backend whose version isn't your command's current
storage version. See #bea/110/bd1# for reasoning. To see the on-disk
storage version, look at
.be/version
To see your command's supported storage version, look at
be --full-version
I added test_upgrade.sh to exercise the upgrade mechanism on BE's own
repository.
Diffstat (limited to 'libbe/bug.py')
-rw-r--r-- | libbe/bug.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index 6ab4d78..1186ad4 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -628,7 +628,7 @@ class Bug(settings_object.SavedSettingsObject): def load_settings(self, settings_mapfile=None): if settings_mapfile == None: settings_mapfile = \ - self.storage.get(self.id.storage("values"), default="\n") + self.storage.get(self.id.storage('values'), default='\n') try: self.settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: @@ -638,7 +638,7 @@ class Bug(settings_object.SavedSettingsObject): def save_settings(self): mf = mapfile.generate(self._get_saved_settings()) - self.storage.set(self.id.storage("values"), mf) + self.storage.set(self.id.storage('values'), mf) def save(self): """ |