From cee1cdafb0e66fb17f97c9c71ba0cb0a62a1813b Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 28 Jan 2011 23:08:39 +0100 Subject: [PATCH] Add location_id to return value of str(somelocation). Signed-off-by: Torsten Werner --- daklib/dbconn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index e8a68390..3dd73b3c 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1583,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'] -- 2.39.5