]> git.decadent.org.uk Git - dak.git/commitdiff
Drop class SrcAssociation.
authorTorsten Werner <twerner@debian.org>
Sat, 22 Jan 2011 21:53:49 +0000 (22:53 +0100)
committerTorsten Werner <twerner@debian.org>
Sat, 22 Jan 2011 21:53:49 +0000 (22:53 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 9ace924414717d4f6cafb4b2e68fc0fc70263725..30aa7aaa3743c1d85463ad91d1c1e53f9a9c1fe8 100755 (executable)
@@ -2416,17 +2416,6 @@ __all__.append('SourceACL')
 
 ################################################################################
 
-class SrcAssociation(object):
-    def __init__(self, *args, **kwargs):
-        pass
-
-    def __repr__(self):
-        return '<SrcAssociation %s (%s, %s)>' % (self.sa_id, self.source, self.suite)
-
-__all__.append('SrcAssociation')
-
-################################################################################
-
 class SrcFormat(object):
     def __init__(self, *args, **kwargs):
         pass
@@ -3059,13 +3048,6 @@ class DBConn(object):
         mapper(SourceACL, self.tbl_source_acl,
                properties = dict(source_acl_id = self.tbl_source_acl.c.id))
 
-        mapper(SrcAssociation, self.tbl_src_associations,
-               properties = dict(sa_id = self.tbl_src_associations.c.id,
-                                 suite_id = self.tbl_src_associations.c.suite,
-                                 suite = relation(Suite),
-                                 source_id = self.tbl_src_associations.c.source,
-                                 source = relation(DBSource)))
-
         mapper(SrcFormat, self.tbl_src_format,
                properties = dict(src_format_id = self.tbl_src_format.c.id,
                                  format_name = self.tbl_src_format.c.format_name))