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:
parent
09c260cb88
commit
44ba8c6f50
@ -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
|
||||
|
@ -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, {}),
|
||||
|
Loading…
Reference in New Issue
Block a user