]> err.no Git - dak/commitdiff
DBSource: drop property srcassociations.
authorTorsten Werner <twerner@debian.org>
Mon, 17 Jan 2011 19:18:57 +0000 (20:18 +0100)
committerTorsten Werner <twerner@debian.org>
Mon, 17 Jan 2011 19:18:57 +0000 (20:18 +0100)
... in favour of new property suites.

Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 766efdb4a9e463f6b1b3837c3410037d2174a90c..bfce1f2c8ebf184a6898328313eda700c07ad55c 100755 (executable)
@@ -3067,8 +3067,8 @@ class DBConn(object):
                                                       primaryjoin=(self.tbl_source.c.changedby==self.tbl_maintainer.c.id)),
                                  srcfiles = relation(DSCFile,
                                                      primaryjoin=(self.tbl_source.c.id==self.tbl_dsc_files.c.source)),
-                                 srcassociations = relation(SrcAssociation,
-                                                            primaryjoin=(self.tbl_source.c.id==self.tbl_src_associations.c.source)),
+                                 suites = relation(Suite, secondary=self.tbl_src_associations,
+                                     backref='sources'),
                                  srcuploaders = relation(SrcUploader)))
 
         mapper(SourceACL, self.tbl_source_acl,