From: Ansgar Burchardt Date: Fri, 15 Jun 2012 13:40:36 +0000 (+0200) Subject: daklib/dbconn.py: add path property to Suite X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f2b3db04952a94011b8f459f701d6aff2ef9b2ed;p=dak.git daklib/dbconn.py: add path property to Suite --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c1c3d9ef..ca6befea 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2999,6 +2999,10 @@ class Suite(ORMObject): else: return object_session(self).query(Suite).filter_by(suite_name=self.overridesuite).one() + @property + def path(self): + return os.path.join(self.archive.path, 'dists', self.suite_name) + __all__.append('Suite') @session_wrapper