leif pushed a commit to branch master. http://git.enlightenment.org/apps/econnman.git/commit/?id=601c3d646ae5a64231ba4eab076b8a76bff7d0b7
commit 601c3d646ae5a64231ba4eab076b8a76bff7d0b7 Author: Daniel Haß <daniel.h...@stzedn.de> Date: Mon Jan 20 14:18:11 2014 +0100 Added global declarations to the config-helper methods for the configs variable. This should fix the current error reported in T800. Test Plan: With the global declarations the error after clicking the network name in the list is gone. Reviewers: kuuko, leif Reviewed By: leif Differential Revision: https://phab.enlightenment.org/D472 --- econnman-bin.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/econnman-bin.in b/econnman-bin.in index 1f2b6a3..9cdb64b 100755 --- a/econnman-bin.in +++ b/econnman-bin.in @@ -255,6 +255,7 @@ class ObjectView(object): # Config Files Helper: def config_file_setup(): + global configs configs = configparser.RawConfigParser() configs.optionxform = str try: @@ -267,6 +268,7 @@ def config_file_setup(): pass def config_del(name): + global configs secname = 'service_' + name if configs == None: try: @@ -278,6 +280,7 @@ def config_del(name): config_write(name) def config_set(name, key, value): + global configs secname = 'service_' + name if configs == None: try: @@ -295,6 +298,7 @@ def config_set(name, key, value): config_write(name) def config_get(name): + global configs if configs == None: try: config_file_setup() @@ -313,6 +317,7 @@ def config_exists(name): return False def config_write(name): + global configs try: with open(CONF_FILE, 'w', encoding='utf8') as configfile: configs.write(configfile) --