- closed bugs f77, 2b8 d8d
authorGianluca Montecchi <gian@grys.it>
Tue, 4 Aug 2009 21:31:33 +0000 (23:31 +0200)
committerGianluca Montecchi <gian@grys.it>
Tue, 4 Aug 2009 21:31:33 +0000 (23:31 +0200)
- some changes to the css and to the html layout

.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/body [new file with mode: 0644]
.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/values [new file with mode: 0644]
.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values
.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values
.be/bugs/da2b09ff-af24-40f3-9b8d-6ffaa5f41164/values [new file with mode: 0644]
becommands/html.py

index ef6644aadae02f51ff15e15909043c3021b7cd0a..0a47ab5bd5c59de2439ea8160c795c8a608a0bfc 100644 (file)
@@ -7,7 +7,7 @@ reporter: gianluca <gian@galactica>
 severity: minor
 
 
-status: open
+status: closed
 
 
 summary: Use the get_parser
diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/body b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/body
new file mode 100644 (file)
index 0000000..df57a1a
--- /dev/null
@@ -0,0 +1 @@
+prova
diff --git a/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/values b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/values
new file mode 100644 (file)
index 0000000..b2249ff
--- /dev/null
@@ -0,0 +1,11 @@
+Content-type: text/plain
+
+
+Date: Tue, 04 Aug 2009 19:48:58 +0000
+
+
+From: Gianluca Montecchi <gian@grys.it>
+
+
+In-reply-to: 433e2090-55d6-4b13-bc6d-0b509556f21b
+
index 03ebb00b500ceeb6cb584a5e8eb34ee5fb9eb7d1..8b58566ab6c50b23e532474f3e7d9ab77d39ec17 100644 (file)
@@ -4,7 +4,7 @@ creator: gianluca <gian@galactica>
 reporter: gianluca <gian@galactica>
 
 
-severity: minor
+severity: wishlist
 
 
 status: open
index dc96c5b8028495ea20aaf32bba138c7cb8095e34..a5777b95d54d5e405cec39d1fd7317c263f7c1d8 100644 (file)
@@ -7,7 +7,7 @@ reporter: gianluca <gian@galactica>
 severity: wishlist
 
 
-status: open
+status: closed
 
 
 summary: Add the possibility to specify the repository Directory ?
diff --git a/.be/bugs/da2b09ff-af24-40f3-9b8d-6ffaa5f41164/values b/.be/bugs/da2b09ff-af24-40f3-9b8d-6ffaa5f41164/values
new file mode 100644 (file)
index 0000000..4d784ad
--- /dev/null
@@ -0,0 +1,17 @@
+creator: Gianluca Montecchi <gian@grys.it>
+
+
+reporter: Gianluca Montecchi <gian@grys.it>
+
+
+severity: wishlist
+
+
+status: open
+
+
+summary: Add an icon near the status string
+
+
+time: Tue, 04 Aug 2009 21:15:52 +0000
+
index 1ecf3ab29010f37e26b76ad7f81cc0e32e21e96a..483522745f5e4f23e6d7bd108f93fe2b877eb30b 100644 (file)
@@ -38,14 +38,16 @@ def execute(args, test=False):
     """
     parser = get_parser()
     options, args = parser.parse_args(args)
+    complete(options, args, parser)
     cmdutil.default_complete(options, args, parser,
                              bugid_args={0: lambda bug : bug.active==False})
+    
     if len(args) == 0:
-        out_dir = './html_export'
-        print "Creating the html output in ./html_export"
+        out_dir = options.outdir
+        print "Creating the html output in %s"%out_dir
     else:
         out_dir = args[0]
-    if len(args) > 1:
+    if len(args) > 0:
         raise cmdutil.UsageError, "Too many arguments."
     
     bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
@@ -76,6 +78,8 @@ def execute(args, test=False):
     
 def get_parser():
     parser = cmdutil.CmdOptionParser("be open OUTPUT_DIR")
+    parser.add_option("-o", "--output", metavar="export_dir", dest="outdir",
+        help="Set the output path, default is ./html_export", default="html_export")    
     return parser
 
 longhelp="""
@@ -84,7 +88,12 @@ Generate a set of html pages.
 
 def help():
     return get_parser().help_str() + longhelp
-    
+
+def complete(options, args, parser):
+    for option, value in cmdutil.option_value_pairs(options, parser):
+        if "--complete" in args:
+            raise cmdutil.GetCompletions() # no positional arguments for list
+        
     
 class BEHTMLGen():
     def __init__(self, bd):
@@ -127,43 +136,32 @@ class BEHTMLGen():
         border = 1;
         }
         
-        .open-row {
-        background-color: #e9e9e2;
-        width: 5%;
-        }
-        
-        .assigned-row {
-        background-color: #f9f9f9;
-        width: 5%;
+        .wishlist-row {
+        background-color: #B4FF9B;
+        width: auto;
         }
         
-        
-        .test-row {
-        background-color: #f9f9f9;
-        width: 5%;
+        .minor-row {
+        background-color: #FCFF98;
+        width: auto;
         }
         
-        .unconfirmed-row {
-        background-color: #f9f9f9;
-        width: 5%;
-        }
         
-        .fixed-row {
-        background-color: #f9f9f9;
-        width: 5%;
+        .serious-row {
+        background-color: #FFB648;
+        width: auto;
         }
         
-        .closed-row {
-        background-color: #f9f9f9;
-        width: 5%;
+        .critical-row {
+        background-color: #FF752A;
+        width: auto;
         }
         
-        .wontfix-row {
-        background-color: #f9f9f9;
-        width: 5%;
+        .fatal-row {
+        background-color: #FF3300;
+        width: auto;
         }
-        
-        
+                
         .person {
         font-family: courier;
         }
@@ -187,7 +185,7 @@ class BEHTMLGen():
         }
         
         p {
-        width: 40em;
+        width: auto;
         }
         
         .inline-status-image {
@@ -200,23 +198,40 @@ class BEHTMLGen():
         }
         
         table {
-        border-style: none;
+        border-style: 10px solid #313131;
         border-spacing: 0;
+        width: auto;
         }
         
         table.log {
         }
         
-        
         td {
         border-width: 0;
         border-style: none;
         padding-right: 0.5em;
         padding-left: 0.5em;
+        width: auto;
+        }
+        
+        .td_sel {
+        background-color: #afafaf;
+        border: 1px solid #afafaf;
+        font-weight:bold;
+        padding-right: 1em;
+        padding-left: 1em;
+        
+        }
+        
+        .td_nsel {
+        border: 0px;
+        padding-right: 1em;
+        padding-left: 1em;
         }
         
         tr {
         vertical-align: top;
+        width: auto;
         }
         
         h1 {
@@ -240,8 +255,6 @@ class BEHTMLGen():
         color: #305275;
         }
         
-        
-        
         .attrname {
         text-align: right;
         font-size: smaller;
@@ -308,13 +321,6 @@ class BEHTMLGen():
         background-color: #f9f9f9;
         }
         
-        .backptr {
-        font-size: smaller;
-        width: 100%;
-        text-align: left;
-        padding-bottom: 1em;
-        margin-top: 0;
-        }
         
         .logcomment {
         padding-left: 4em;
@@ -325,21 +331,14 @@ class BEHTMLGen():
         font-family: courier;
         }
         
-        .description {
-        background: #f2f2f2;
-        padding-left: 1em;
-        padding-right: 1em;
-        padding-top: 0.5em;
-        padding-bottom: 0.5em;
+        .table_bug {
+        background-color: #afafaf;
+        border: 2px solid #afafaf;
         }
         
         .message {
         }
         
-        .littledate {
-        font-size: smaller;
-        }
-        
         .progress-meter-done {
         background-color: #03af00;
         }
@@ -350,6 +349,7 @@ class BEHTMLGen():
         
         .progress-meter {
         }
+        
         """
         
         self.index_first = """
@@ -364,12 +364,16 @@ class BEHTMLGen():
         
         <div class="main">
         <h1>BugsEverywhere Bug List</h1>
-        <table><tr>
-        <td><a href="index.html"><h2>Active Bugs</h2></a></td>
-        <td><a href="index_inactive.html"><h2>Inactive Bugs</h2></a></td>
+        <p></p>
+        <table>
+        
+        <tr>
+        <td class=%s><a href="index.html">Active Bugs</a></td>
+        <td class=%s><a href="index_inactive.html">Inactive Bugs</a></td>
         </tr>
+        
         </table>
-        <table width=100%>
+        <table class=table_bug>
         <tbody>
         """    
         
@@ -471,16 +475,17 @@ class BEHTMLGen():
         try:
             if fileid == "active":
                 FO = open(out_dir_path+"/index.html", "w")
+                FO.write(self.index_first%('td_sel','td_nsel'))
             if fileid == "inactive":
                 FO = open(out_dir_path+"/index_inactive.html", "w")
+                FO.write(self.index_first%('td_nsel','td_sel'))
         except:
             raise  cmdutil.UsageError, "Cannot create the index.html file."
         
-        FO.write(self.index_first)
         c = 0
         t = len(bugs) - 1
         for l in range(t,  -1,  -1):
-            line = self.bug_line%(bugs[l].status,
+            line = self.bug_line%(bugs[l].severity,
             bugs[l].uuid, bugs[l].uuid[0:3],
             bugs[l].uuid,  bugs[l].status,
             bugs[l].uuid,  bugs[l].severity,
@@ -489,12 +494,12 @@ class BEHTMLGen():
             )
             FO.write(line)
             c += 1
-            self.CreateDetailFile(bugs[l], out_dir_path, fileid)
+            self.create_detail_file(bugs[l], out_dir_path, fileid)
         when = time.ctime()
         FO.write(self.index_last%when)
 
 
-    def CreateDetailFile(self, bug, out_dir_path, fileid):
+    def create_detail_file(self, bug, out_dir_path, fileid):
         f = "%s.html"%bug.uuid
         p = out_dir_path+"/bugs/"+f
         try: