diff options
authorMichael2011-12-30 17:44:51 (GMT)
committerAnthony G. Basile2011-12-30 17:49:25 (GMT)
commitb693439b662c3d4d2bf6a445cb89c04eb924160f (patch)
parent9dbea9ba4215269135dce31918073d09dd9aa790 (diff)
Forward-compat WEB_CATEGORY variable
Versions previous to 1.50.18 did not include WEB_CATEGORY which was stored in ${webapp_installed_dir}/.webapp, but newer versions require it. Make old installations forward-compatible by pretending this variable exists. Reported-By: Patrick <> Signed-off-by: Anthony G. Basile <> X-Gentoo-Bug: 355295 X-Gentoo-Bug-URL:
1 files changed, 4 insertions, 0 deletions
diff --git a/WebappConfig/ b/WebappConfig/
index 610d1e3..ad3d894 100644
--- a/WebappConfig/
+++ b/WebappConfig/
@@ -119,6 +119,10 @@ class DotConfig:
def __getitem__(self, key):
if key in self.__data.keys():
return self.__data[key]
+ # this key didn't exist in old versions, but new versions
+ # expect it. fix bug 355295
+ elif key == 'WEB_CATEGORY':
+ return ''
def __dot_config(self):
''' Returns the full path to the dot config file.'''