← Back to team overview

gtg team mailing list archive

[Merge] lp:~ienjoycoding/gtg/shortcut-for-kde-bug-system into lp:gtg

 

mmin has proposed merging lp:~ienjoycoding/gtg/shortcut-for-kde-bug-system into lp:gtg.

Requested reviews:
  Gtg developers (gtg)
Related bugs:
  Bug #877573 in Getting Things GNOME!: "[propose] add a hyper link for kde bug tracking system"
  https://bugs.launchpad.net/gtg/+bug/877573

For more details, see:
https://code.launchpad.net/~ienjoycoding/gtg/shortcut-for-kde-bug-system/+merge/79752

This adds hyperlink for kde bug system.
-- 
https://code.launchpad.net/~ienjoycoding/gtg/shortcut-for-kde-bug-system/+merge/79752
Your team Gtg developers is requested to review the proposed merge of lp:~ienjoycoding/gtg/shortcut-for-kde-bug-system into lp:gtg.
=== modified file 'GTG/gtk/editor/taskview.py'
--- GTG/gtk/editor/taskview.py	2011-08-26 15:20:31 +0000
+++ GTG/gtk/editor/taskview.py	2011-10-19 00:24:26 +0000
@@ -569,7 +569,7 @@
                 if url.startswith("http://";) or url.startswith("https://";) :
                     texttag = self.create_anchor_tag(buff,url,text=None,typ="http")
                     buff.apply_tag(texttag, prev , it)
-            elif text in ["bug","lp","bgo","fdo"] :
+            elif text in ["bug","lp","bgo","fdo", "bko"] :
                 if it.get_char() == " " :
                     it.forward_char()
                 if it.get_char() == "#" :
@@ -583,6 +583,8 @@
                         topoint = "https://launchpad.net/bugs/%s"; %nbr
                     elif url.startswith("bgo #") :
                         topoint = "http://bugzilla.gnome.org/show_bug.cgi?id=%s"; %nbr
+                    elif url.startswith("bko #") :
+                        topoint = "https://bugs.kde.org/show_bug.cgi?id=%s"; %nbr
                     elif url.startswith("fdo #") :
                         topoint = "http://bugs.freedesktop.org/show_bug.cgi?id=%s"; %nbr
                     if topoint :


Follow ups