From 4106440cf4aff05469401cfa2eae0956c3761449 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 10 Jul 2012 09:12:40 +0200 Subject: [PATCH] get previous value --- config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index e5498c5..e811ee8 100644 --- a/config.py +++ b/config.py @@ -372,10 +372,13 @@ class Config(object): self = self._cfgimpl_parent return self - def cfgimpl_previous_values(self, path): + def cfgimpl_previous_value(self, path): home, name = self._cfgimpl_get_home_by_path(path) return home._cfgimpl_previous_values[name] - + + def get_previous_value(self, name): + return home._cfgimpl_previous_values[name] + def add_warning(self, warning): self._cfgimpl_get_toplevel()._cfgimpl_warnings.append(warning)