Example #1
0
def print_bugs(lp, bugs, attributes=('status', 'date_created', 'web_link',
                                     'title', )):
    to_print = []
    for bug in bugs:
        to_print.append(LaunchpadShowMyBugs.hydrate_bug(bug,
                                                        attributes).values())
    print tabulate(to_print, attributes, tablefmt="grid")
Example #2
0
def main():
    options = parse_options()

    lp = LaunchpadShowMyBugs(options.author)
    lp.add_filter('bug_target_name', options.project)

    (sort_by, sort_kind) = options.sort_by.split(":")
    lp.sort_by(sort_by, sort_kind)

    print_bugs(lp, lp.fetch(limit=options.limit))
Example #3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'Jorge Niedbalski R. <*****@*****.**>'

from lp_show_my_bugs import LaunchpadShowMyBugs

lp = LaunchpadShowMyBugs('niedbalski')

lp.add_filter('bug_target_name', 'any-project')
lp.sort_by('date_created', 'desc')

tasks = lp.fetch()

for task in tasks:
    print task.date_created, task.title