1 |
hwoarang 14/04/29 21:11:41 |
2 |
|
3 |
Modified: gmn_bugzie.py |
4 |
Log: |
5 |
gmn_bugzie: Add initial html code for bugzilla charts |
6 |
|
7 |
Revision Changes Path |
8 |
1.12 src/gwn/gmn_bugzie.py |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.11&r2=1.12 |
13 |
|
14 |
Index: gmn_bugzie.py |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v |
17 |
retrieving revision 1.11 |
18 |
retrieving revision 1.12 |
19 |
diff -u -r1.11 -r1.12 |
20 |
--- gmn_bugzie.py 30 Nov 2013 10:56:29 -0000 1.11 |
21 |
+++ gmn_bugzie.py 29 Apr 2014 21:11:41 -0000 1.12 |
22 |
@@ -80,6 +80,8 @@ |
23 |
# get dates from command line, else use now (time.time()) |
24 |
starttime = time.gmtime(time.time() - (60 * 60 * 24 * 31)) |
25 |
endtime = time.gmtime(time.time() - (60 * 60 * 24 * 1)) |
26 |
+dateimg = time.strftime("%Y-%m",endtime) |
27 |
+datefor = time.strftime("%Y/%m",endtime) |
28 |
|
29 |
if len(sys.argv) > 1: |
30 |
if len(sys.argv) >= 2: |
31 |
@@ -147,6 +149,11 @@ |
32 |
"activity on Bugzilla between <strong>%s</strong> and <strong>%s</strong>. Not fixed means bugs that were " % (date_from_display, date_to_display) + \ |
33 |
"resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. " |
34 |
|
35 |
+print """<a |
36 |
+href="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png"><img |
37 |
+class="size-full wp-image-219 aligncenter" alt="gmn-activity-%s" |
38 |
+src="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png" |
39 |
+width="500" height="300" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg) |
40 |
print "[table]" |
41 |
print "Bug Activity, Number" |
42 |
print "New, %d" % new_bug_count |
43 |
@@ -171,6 +178,11 @@ |
44 |
print "10, Others, %s" % (total_closed - cleft) |
45 |
print "[/table]" |
46 |
|
47 |
+print """<a |
48 |
+href="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png"><img |
49 |
+class="aligncenter size-full wp-image-220" alt="gmn-closed-%s" |
50 |
+src="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png" |
51 |
+width="500" height="250" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg) |
52 |
#9. Open Bugs |
53 |
#print "\n\n==Open Bugs==\n" |
54 |
oleft = 0 |
55 |
@@ -183,3 +195,8 @@ |
56 |
oleft += groups_that_opened_most[i][1] |
57 |
print "10, Others, %s" % (total_opened - oleft) |
58 |
print "[/table]" |
59 |
+print """<a |
60 |
+href="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png"><img |
61 |
+class="aligncenter size-full wp-image-220" alt="gmn-opened-%s" |
62 |
+src="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png" width="500" |
63 |
+height="250" /></a> """ % (datefor,dateimg,dateimg,datefor,dateimg) |