diff options
10 files changed, 66 insertions, 9 deletions
diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/body b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/body new file mode 100644 index 0000000..b8a6cb9 --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/body @@ -0,0 +1 @@ +Reply 1-bis diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/values b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/values new file mode 100644 index 0000000..062b638 --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/values @@ -0,0 +1,11 @@ +Content-type: text/plain + + +Date: Tue, 21 Jul 2009 21:33:37 +0000 + + +From: Gianluca Montecchi <gian@grys.it> + + +In-reply-to: f776d667-6959-4cab-b05d-39e07702c04b + diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/body b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/body new file mode 100644 index 0000000..1e25ab8 --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/body @@ -0,0 +1 @@ +Reply 1 diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/values b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/values new file mode 100644 index 0000000..f335ced --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/values @@ -0,0 +1,11 @@ +Content-type: text/plain + + +Date: Tue, 21 Jul 2009 21:33:29 +0000 + + +From: Gianluca Montecchi <gian@grys.it> + + +In-reply-to: a0cbbd2e-a078-41ac-b583-900e9bb2abf3 + diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/body b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/body new file mode 100644 index 0000000..c8e09f8 --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/body @@ -0,0 +1 @@ +Reply diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/values b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/values new file mode 100644 index 0000000..06691af --- /dev/null +++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/values @@ -0,0 +1,11 @@ +Content-type: text/plain + + +Date: Tue, 21 Jul 2009 21:31:21 +0000 + + +From: Gianluca Montecchi <gian@grys.it> + + +In-reply-to: f776d667-6959-4cab-b05d-39e07702c04b + diff --git a/.be/bugs/8385a1fb-63df-4ca6-81cd-28ede83bb0c2/values b/.be/bugs/8385a1fb-63df-4ca6-81cd-28ede83bb0c2/values index e7284bc..918f6be 100644 --- a/.be/bugs/8385a1fb-63df-4ca6-81cd-28ede83bb0c2/values +++ b/.be/bugs/8385a1fb-63df-4ca6-81cd-28ede83bb0c2/values @@ -7,7 +7,7 @@ reporter: gianluca <gian@galactica> severity: minor -status: open +status: wontfix summary: Add the html files for the status detail diff --git a/.be/bugs/9b1a0e71-4f7d-40b1-ab32-18496bf19a3f/values b/.be/bugs/9b1a0e71-4f7d-40b1-ab32-18496bf19a3f/values index 900a347..600f2c3 100644 --- a/.be/bugs/9b1a0e71-4f7d-40b1-ab32-18496bf19a3f/values +++ b/.be/bugs/9b1a0e71-4f7d-40b1-ab32-18496bf19a3f/values @@ -7,7 +7,7 @@ reporter: gianluca <gian@galactica> severity: minor -status: open +status: wontfix summary: Add the html files for the severity detail diff --git a/.be/bugs/f77fc673-c852-4c81-bfa2-1d59de2661c8/values b/.be/bugs/f77fc673-c852-4c81-bfa2-1d59de2661c8/values new file mode 100644 index 0000000..d585297 --- /dev/null +++ b/.be/bugs/f77fc673-c852-4c81-bfa2-1d59de2661c8/values @@ -0,0 +1,17 @@ +creator: Gianluca Montecchi <gian@grys.it> + + +reporter: Gianluca Montecchi <gian@grys.it> + + +severity: minor + + +status: open + + +summary: Comment should be threaded in the html output + + +time: Tue, 21 Jul 2009 21:39:52 +0000 + diff --git a/becommands/html.py b/becommands/html.py index ce9fb7b..b0441b9 100644 --- a/becommands/html.py +++ b/becommands/html.py @@ -66,7 +66,7 @@ def execute(args, test=False): ordered_bug_list = sorted([(value,key) for (key,value) in stime.items()]) #open_bug_list = sorted([(value,key) for (key,value) in bugs.items()]) - html_gen = BEHTMLGen() + html_gen = BEHTMLGen(bd) html_gen.create_index_file(out_dir, st, bugs, ordered_bug_list) def get_parser(): @@ -82,8 +82,9 @@ def help(): class BEHTMLGen(): - def __init__(self): - self.index_value = "" + def __init__(self, bd): + self.index_value = "" + self.bd = bd def create_index_file(self, out_dir_path, summary, bugs, ordered_bug): try: @@ -121,7 +122,6 @@ class BEHTMLGen(): bugs[l].uuid, bugs[l].summary, bugs[l].uuid, bugs[l].time_string ) - print line FO.write(line) c += 1 self.CreateDetailFile(bugs[l], out_dir_path) @@ -138,10 +138,14 @@ class BEHTMLGen(): detail_first_ = re.sub('_bug_id_', bug.uuid[0:3], detail_first) FD.write(detail_first_) - bug.load_comments() - c = bug.comment_root - print c.body + + + bug_ = self.bd.bug_from_shortname(bug.uuid[0:3]) + bug_.load_comments(load_full=True) + for i in bug_.comments(): + print i.uuid, i.in_reply_to + FD.write(detail_line%("ID : ", bug.uuid)) FD.write(detail_line%("Short name : ", bug.uuid[0:3])) FD.write(detail_line%("Severity : ", bug.severity)) |