X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=3dd73b3c36252d4c0cd7bc9ea63b9ec7e9606a66;hb=cee1cdafb0e66fb17f97c9c71ba0cb0a62a1813b;hp=1fca9839d73baf31787904a6f27cb0415ce51936;hpb=f698f038afdccb07487c104dac7c83d3120b6de3;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 1fca9839..3dd73b3c 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1575,8 +1575,6 @@ __all__.append('get_dbchange') ################################################################################ -# TODO: Why do we have a separate Location class? Can't it be fully integrated -# into class Component? class Location(ORMObject): def __init__(self, path = None, component = None): self.path = path @@ -1585,7 +1583,8 @@ class Location(ORMObject): self.archive_type = 'pool' def properties(self): - return ['path', 'archive_type', 'component', 'files_count'] + return ['path', 'location_id', 'archive_type', 'component', \ + 'files_count'] def not_null_constraints(self): return ['path', 'archive_type']