Add attributes to the ORM to link mirrors and cdroms 0.0.3
authorEvan Broder <broder@mit.edu>
Tue, 28 Oct 2008 07:16:32 +0000 (03:16 -0400)
committerEvan Broder <broder@mit.edu>
Tue, 28 Oct 2008 07:16:32 +0000 (03:16 -0400)
svn path=/trunk/packages/invirt-database/; revision=1363

debian/changelog
python/database/models.py

index 73c5c08..de08e10 100644 (file)
@@ -1,3 +1,9 @@
+invirt-database (0.0.3) unstable; urgency=low
+
+  * Add attributes to the ORM objects to connect mirrors and cdroms
+
+ -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 03:16:18 -0400
+
 invirt-database (0.0.2) unstable; urgency=low
 
   * Export mirrors_table and Mirrors from invirt.database.models
index e44aff3..625e04b 100644 (file)
@@ -128,7 +128,8 @@ session.mapper(NIC, nic_table)
 session.mapper(Disk, disk_table)
 session.mapper(Type, types_table)
 session.mapper(Mirror, mirrors_table)
-session.mapper(CDROM, cdroms_table)
+session.mapper(CDROM, cdroms_table,
+               properties={'mirror': relation(Mirror, backref="cdroms")})
 session.mapper(Autoinstall, autoinstalls_table)
 
 def clear_cache():