public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Markos Chandras (hwoarang)" <hwoarang@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
Date: Tue, 29 Apr 2014 21:11:41 +0000 (UTC)	[thread overview]
Message-ID: <20140429211141.83F8E2004B@flycatcher.gentoo.org> (raw)

hwoarang    14/04/29 21:11:41

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie: Add initial html code for bugzilla charts

Revision  Changes    Path
1.12                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.11&r2=1.12

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- gmn_bugzie.py	30 Nov 2013 10:56:29 -0000	1.11
+++ gmn_bugzie.py	29 Apr 2014 21:11:41 -0000	1.12
@@ -80,6 +80,8 @@
 # get dates from command line, else use now (time.time())
 starttime = time.gmtime(time.time() - (60 * 60 * 24 * 31))
 endtime = time.gmtime(time.time() - (60 * 60 * 24 * 1))
+dateimg = time.strftime("%Y-%m",endtime)
+datefor = time.strftime("%Y/%m",endtime)
 
 if len(sys.argv) > 1:
   if len(sys.argv) >= 2:
@@ -147,6 +149,11 @@
 "activity on Bugzilla between <strong>%s</strong> and <strong>%s</strong>. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
 "resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. "
 
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png"><img
+class="size-full wp-image-219 aligncenter" alt="gmn-activity-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png"
+width="500" height="300" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg)
 print "[table]"
 print "Bug Activity, Number"
 print "New, %d" % new_bug_count
@@ -171,6 +178,11 @@
 print "10, Others, %s" % (total_closed - cleft)
 print "[/table]"
 
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png"><img
+class="aligncenter size-full wp-image-220" alt="gmn-closed-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png"
+width="500" height="250" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg)
 #9. Open Bugs
 #print "\n\n==Open Bugs==\n"
 oleft = 0
@@ -183,3 +195,8 @@
 	oleft += groups_that_opened_most[i][1]
 print "10, Others, %s" % (total_opened - oleft)
 print "[/table]"
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png"><img
+class="aligncenter size-full wp-image-220" alt="gmn-opened-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png" width="500"
+height="250" /></a> """ % (datefor,dateimg,dateimg,datefor,dateimg)





             reply	other threads:[~2014-04-29 21:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-29 21:11 Markos Chandras (hwoarang) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-09-01 20:02 [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py Markos Chandras (hwoarang)
2014-09-01 19:48 Markos Chandras (hwoarang)
2014-05-04 11:23 Markos Chandras (hwoarang)
2013-11-30 10:56 Markos Chandras (hwoarang)
2013-11-30 10:49 Markos Chandras (hwoarang)
2013-11-01 17:09 Markos Chandras (hwoarang)
2013-10-31 19:07 Markos Chandras (hwoarang)
2013-10-13 10:33 Markos Chandras (hwoarang)
2013-10-13  9:50 Markos Chandras (hwoarang)
2013-10-13  9:33 Markos Chandras (hwoarang)
2013-10-05 15:45 Markos Chandras (hwoarang)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140429211141.83F8E2004B@flycatcher.gentoo.org \
    --to=hwoarang@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox