Changeset 1363 for trunk


Ignore:
Timestamp:
Oct 28, 2008, 3:16:32 AM (16 years ago)
Author:
broder
Message:

Add attributes to the ORM to link mirrors and cdroms

Location:
trunk/packages/invirt-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r1361 r1363  
     1invirt-database (0.0.3) unstable; urgency=low
     2
     3  * Add attributes to the ORM objects to connect mirrors and cdroms
     4
     5 -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 03:16:18 -0400
     6
    17invirt-database (0.0.2) unstable; urgency=low
    28
  • trunk/packages/invirt-database/python/database/models.py

    r1361 r1363  
    129129session.mapper(Type, types_table)
    130130session.mapper(Mirror, mirrors_table)
    131 session.mapper(CDROM, cdroms_table)
     131session.mapper(CDROM, cdroms_table,
     132               properties={'mirror': relation(Mirror, backref="cdroms")})
    132133session.mapper(Autoinstall, autoinstalls_table)
    133134
Note: See TracChangeset for help on using the changeset viewer.