convert get-deliverable-owner to use the object model classes

Change-Id: I0b07dacd8743daad10554965235166f084385940
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-03-08 13:26:24 -05:00
parent 09c260cb88
commit 44ba8c6f50
2 changed files with 3 additions and 4 deletions

View File

@ -35,7 +35,6 @@ def main():
root_dir=args.deliverables_dir,
collapse_history=False,
)
for entry in all_deliv.get_deliverable_history(args.deliverable):
deliv = deliverable.Deliverable(*entry)
for deliv in all_deliv.get_deliverable_history(args.deliverable):
print(deliv.team)
break

View File

@ -191,8 +191,8 @@ class Deliverables(object):
"""Return info associated with a deliverable name.
"""
for filename in self._by_deliverable_name.get(name, []):
yield (
None,
yield Deliverable(
None, # team will be taken from the data
self._series_from_filename(filename),
self._deliverable_from_filename(filename),
self._by_filename.get(filename, {}),