Initial implementation of the comments export
authorGianluca Montecchi <gian@grys.it>
Tue, 21 Jul 2009 21:51:33 +0000 (23:51 +0200)
committerGianluca Montecchi <gian@grys.it>
Tue, 21 Jul 2009 21:51:33 +0000 (23:51 +0200)
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/body [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/3e83dd98-d421-43b6-a78c-5da7aac5f279/values [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/body [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/433e2090-55d6-4b13-bc6d-0b509556f21b/values [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/body [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/a0cbbd2e-a078-41ac-b583-900e9bb2abf3/values [new file with mode: 0644]
.be/bugs/8385a1fb-63df-4ca6-81cd-28ede83bb0c2/values
.be/bugs/9b1a0e71-4f7d-40b1-ab32-18496bf19a3f/values
.be/bugs/f77fc673-c852-4c81-bfa2-1d59de2661c8/values [new file with mode: 0644]
becommands/html.py

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 (file)
index 0000000..b8a6cb9
--- /dev/null
@@ -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 (file)
index 0000000..062b638
--- /dev/null
@@ -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 (file)
index 0000000..1e25ab8
--- /dev/null
@@ -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 (file)
index 0000000..f335ced
--- /dev/null
@@ -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 (file)
index 0000000..c8e09f8
--- /dev/null
@@ -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 (file)
index 0000000..06691af
--- /dev/null
@@ -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
+
index e7284bc98bcffd4ff2917314d3d0a62ca62e74de..918f6be7bdb2edde7090d2a6f002975ba1b7de25 100644 (file)
@@ -7,7 +7,7 @@ reporter: gianluca <gian@galactica>
 severity: minor
 
 
-status: open
+status: wontfix
 
 
 summary: Add the html files for the status detail
index 900a347e7b93b9d9c112eb5bbac4d3ec51545452..600f2c3e1bda28784b6119f4a281a8786f4f188f 100644 (file)
@@ -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 (file)
index 0000000..d585297
--- /dev/null
@@ -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
+
index ce9fb7bb20368da99b825c90af07919ce085f1c7..b0441b9e05ed9a0e71d337e000cafe5e8b477231 100644 (file)
@@ -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))