From: Joerg Jaspert Date: Sun, 3 Oct 2010 15:29:32 +0000 (+0200) Subject: [Mark] Fix for the _setup_routines() X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a505b3117327b9b8fbcd587b65f332efe8a7cd07;p=dak.git [Mark] Fix for the _setup_routines() Signed-off-by: Joerg Jaspert --- diff --git a/daklib/config.py b/daklib/config.py index 932df6b5..b35ed9a9 100755 --- a/daklib/config.py +++ b/daklib/config.py @@ -111,7 +111,7 @@ class Config(object): ('signingkeyids', '', str), ('exportpath', '', str) ]: - setattr(self, 'get_%s' % field[0], lambda x=None: self.get_db_value(field[0], field[1], field[2])) + setattr(self, 'get_%s' % field[0], lambda s=None, x=field[0], y=field[1], z=field[2]: self.get_db_value(x, y, z)) setattr(Config, '%s' % field[0], property(fget=getattr(self, 'get_%s' % field[0]))) def get_defaultsuite(self):