Signed-off-by: Chris Lamb <lamby@debian.org>
maintainer_list = []
for maintainer_id in maintainers.keys():
- maintainer_list.append(get_maintainer(maintainer_id))
+ maintainer_list.append(get_maintainer(maintainer_id).name)
summary = ""
removals = d.keys()
removals.sort()
def get_maintainer(maintainer_id, session=None):
"""
- Return the name of the maintainer behind C{maintainer_id}.
+ Return the name of the maintainer behind C{maintainer_id} or None if that
+ maintainer_id is invalid.
@type maintainer_id: int
@param maintainer_id: the id of the maintainer
- @rtype: string
- @return: the name of the maintainer
+ @rtype: Maintainer
+ @return: the Maintainer with this C{maintainer_id}
"""
privatetrans = False
privatetrans = True
try:
- return session.query(Maintainer).get(maintainer_id).name
+ return session.query(Maintainer).get(maintainer_id)
finally:
if privatetrans:
session.close()