]> git.decadent.org.uk Git - dak.git/commitdiff
[Mark] Fix for the _setup_routines()
authorJoerg Jaspert <joerg@debian.org>
Sun, 3 Oct 2010 15:29:32 +0000 (17:29 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 3 Oct 2010 15:29:32 +0000 (17:29 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/config.py

index 932df6b53c685a8149a53774b60f3299a4ba82d6..b35ed9a9229e602fcbde3e51eda59a70b8f93b84 100755 (executable)
@@ -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):