]> git.ipfire.org Git - oddments/cappie.git/commitdiff
Add shortcut for database from main class.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Apr 2010 14:50:12 +0000 (16:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Apr 2010 14:50:12 +0000 (16:50 +0200)
cappie/__init__.py

index 44c7ac161591978c817b55450d67d8aa46b5e2e3..9e469d0d42956440e964d20335b2c0ac894650b3 100644 (file)
@@ -125,6 +125,10 @@ class Cappie(object):
 
                self.queue.shutdown()
 
+       @property
+       def db(self):
+               return self.queue.db
+
 
 class Interface(Thread):
        heartbeat = 0.1