From 6fb7b56027682a063156f9134aa9093c00f90e4e Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 26 Jan 2011 21:34:10 +0100 Subject: [PATCH] Drop class BinAssociation. Signed-off-by: Torsten Werner --- daklib/dbconn.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c7c91b7d..1acb20d4 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -421,17 +421,6 @@ __all__.append('get_archive') ################################################################################ -class BinAssociation(object): - def __init__(self, *args, **kwargs): - pass - - def __repr__(self): - return '' % (self.ba_id, self.binary, self.suite) - -__all__.append('BinAssociation') - -################################################################################ - class BinContents(object): def __init__(self, *args, **kwargs): pass @@ -2939,13 +2928,6 @@ class DBConn(object): properties = dict(archive_id = self.tbl_archive.c.id, archive_name = self.tbl_archive.c.name)) - mapper(BinAssociation, self.tbl_bin_associations, - properties = dict(ba_id = self.tbl_bin_associations.c.id, - suite_id = self.tbl_bin_associations.c.suite, - suite = relation(Suite), - binary_id = self.tbl_bin_associations.c.bin, - binary = relation(DBBinary))) - mapper(PendingBinContents, self.tbl_pending_bin_contents, properties = dict(contents_id =self.tbl_pending_bin_contents.c.id, filename = self.tbl_pending_bin_contents.c.filename, @@ -2994,9 +2976,7 @@ class DBConn(object): fingerprint = relation(Fingerprint), install_date = self.tbl_binaries.c.install_date, suites = relation(Suite, secondary=self.tbl_bin_associations, - backref=backref('binaries', lazy='dynamic')), - binassociations = relation(BinAssociation, - primaryjoin=(self.tbl_binaries.c.id==self.tbl_bin_associations.c.bin))), + backref=backref('binaries', lazy='dynamic'))), extension = validator) mapper(BinaryACL, self.tbl_binary_acl, -- 2.39.5