aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values2
-rw-r--r--.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/body1
-rw-r--r--.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/values11
-rw-r--r--.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values2
-rw-r--r--.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values2
-rw-r--r--.be/bugs/da2b09ff-af24-40f3-9b8d-6ffaa5f41164/values17
-rw-r--r--becommands/html.py127
7 files changed, 98 insertions, 64 deletions
diff --git a/.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values b/.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values
index ef6644a..0a47ab5 100644
--- a/.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values
+++ b/.be/bugs/2b81b428-fc43-4970-9469-b442385b9c0d/values
@@ -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
index 0000000..df57a1a
--- /dev/null
+++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/body
@@ -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
index 0000000..b2249ff
--- /dev/null
+++ b/.be/bugs/4ddf1313-bb3c-45d3-8dca-79ed5830d606/comments/9d56f097-bf5b-4d8a-a83e-7ade8afd2b4c/values
@@ -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
+
diff --git a/.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values b/.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values
index 03ebb00..8b58566 100644
--- a/.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values
+++ b/.be/bugs/c271a802-d324-48a6-b01d-63e4a72aa43e/values
@@ -4,7 +4,7 @@ creator: gianluca <gian@galactica>
reporter: gianluca <gian@galactica>
-severity: minor
+severity: wishlist
status: open
diff --git a/.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values b/.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values
index dc96c5b..a5777b9 100644
--- a/.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values
+++ b/.be/bugs/d8dba78d-f82a-4674-9003-a0ec569b4a96/values
@@ -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
index 0000000..4d784ad
--- /dev/null
+++ b/.be/bugs/da2b09ff-af24-40f3-9b8d-6ffaa5f41164/values
@@ -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
+
diff --git a/becommands/html.py b/becommands/html.py
index 1ecf3ab..4835227 100644
--- a/becommands/html.py
+++ b/becommands/html.py
@@ -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: