On patching bts_webui
There's one thing that I would like to see in the Debian BTS: automatic linking to other bug reports every time someone writes #NN. I would like to file a wishlist report against it with a patch, but I don't know how to try it beforehand - the svn trunk can run a self-contained server, but I don't know how to generate and feed it a bug database. Any suggestions? A temptative patch follows. Cheers, Luca --- diff -ru bts-webui/bts_webui/amancay/bugs.py bts-webui.new/bts_webui/amancay/bugs.py --- bts-webui/bts_webui/amancay/bugs.py 2009-11-15 16:25:34.155705156 +0100 +++ bts-webui.new/bts_webui/amancay/bugs.py 2009-10-28 19:45:38.994111278 +0100 @@ -40,7 +40,8 @@ from_re = re.compile('^From: ?(.+)$', re.MULTILINE) subject_re = re.compile('^Subject: ?(.+)$', re.MULTILINE) date_re = re.compile('^Date: ?(.+)$', re.MULTILINE) - + bugnumber_re = re.compile('#([0-9]{6})') + bug_messages = [] for item in bug_log: message = {} @@ -83,6 +84,7 @@ else: message['body'] = content.get_payload(decode=1) + message['body'] = bugnumber_re.sub(r'a hrefhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=\1;#\1/a' , message['body']) bug_messages.append(message) return render_to_response('bug.html', -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On patching bts_webui
Ciao Luca, Luca Niccoli wrote: [..] --- diff -ru bts-webui/bts_webui/amancay/bugs.py bts_webui.new/bts_webui/amancay/bugs.py You did a patch for Amancay, which is not what is currently running at bugs.debian.org. Federico Ceratto and me are working on a rewrite of it (we started on Amancay itself, but decided to write it from scratch using another framework). It's called Hedgehog (I'm not yet revealing the URL because it's not yet ready for public test). If you want more info, please join us at #debian-it on freenode, and contact me (hanska) or Federico (federico2). We're also on #amancay on OFTC, you could reach us there as well. Ciao :), David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On patching bts_webui
On Sun, 15 Nov 2009, Luca Niccoli wrote: There's one thing that I would like to see in the Debian BTS: automatic linking to other bug reports every time someone writes #NN. I would like to file a wishlist report against it with a patch, but I don't know how to try it beforehand - the svn trunk can run a self-contained server, but I don't know how to generate and feed it a bug database. See http://bugs.debian.org/debbugs-source/ You can also install a self contained debbugs using the debbugs-local package in experimental and send patches based on that. [Or use that to build a local mirror that you run debbugs against.] Finally, if you have questions or want to discuss things, debian-debb...@lists.debian.org is the best place it discuss it. Don Armstrong -- I was thinking seven figures, he said, but I would have taken a hundred grand. I'm not a greedy person. [All for a moldy bottle of tropicana.] -- Sammi Hadzovic [in Andy Newman's 2003/02/14 NYT article.] http://www.nytimes.com/2003/02/14/nyregion/14EYEB.html http://www.donarmstrong.com http://rzlab.ucr.edu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org