Bug#761149: debsources: allow redirects to package versions based on suite/codename

2015-03-15 Thread Jason Pleau
to the latest version when going to /src/package/suite/ Thanks -- Jason Pleau From b7a42373874defca8eb2330be7ed9a7b33b858d3 Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Sun, 15 Mar 2015 18:33:02 -0400 Subject: [PATCH] suites/redirects: rework the way redirects were done * Do

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2015-03-13 Thread Jason Pleau
Updated patches to use the latest testdata commit Cheers Jason From 16d72a6e13a6cada34215dda3a6d4946a772f232 Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Sun, 16 Nov 2014 11:27:43 -0500 Subject: [PATCH 1/2] allow redirects to package versions based on suite/codename We now

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2015-03-12 Thread Jason Pleau
Hello ! As discussed on IRC, I rebase my patches for this bug. I also fixed a few PEP8 issues found by flake8 Note: The redirects won't work until the app is updated with bin/debsources-update (which I guess is already setup in a crontask in production?) Cheers -- Jason Pleau From

Bug#762944: debsources: make .pc/ exclusion a configuration parameter

2015-03-12 Thread Jason Pleau
Hello again, As discussed on IRC, I have rebased my patches for this bug. Cheers -- Jason Pleau From ee67677ce389a844221e3a712598147faf1ff2ff Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Mon, 9 Mar 2015 12:34:06 -0400 Subject: [PATCH 1/2] add a new hidden_files setting

Bug#762944: debsources: make .pc/ exclusion a configuration parameter

2015-03-10 Thread Jason Pleau
Hello Stefano, I have attached two patches. One fixes the issues we talked about earlier today, and the other implements the Show / Hide hidden files button in directory listing: On 10/03/15 09:43 AM, Stefano Zacchiroli wrote: On Mon, Mar 09, 2015 at 02:59:54PM -0400, Jason Pleau wrote

Bug#762944: debsources: make .pc/ exclusion a configuration parameter

2015-03-09 Thread Jason Pleau
the controller that decides what is shown on the screen, but the view. This also allow us to add a toggle button (show / hide hidden files) in directory listings eventually. I could do that in a separate commit in this bug if you'd like. Cheers ! -- Jason Pleau From

Bug#762944: debsources: make .pc/ exclusion a configuration parameter

2015-03-09 Thread Jason Pleau
Updated patch that fixes an error if hidden_files is empty Sorry for the noise :) From 275b94fe8031ac81c75388190dcd58709b14f8d7 Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Mon, 9 Mar 2015 12:34:06 -0400 Subject: [PATCH] add a new hidden_files setting in config.ini Right now

Bug#774808: debsources: line number undefined

2015-01-08 Thread Jason Pleau
181b7b6e6f57966b534f352c61a8e7cc81572b7d Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Thu, 8 Jan 2015 22:51:43 -0500 Subject: [PATCH] web app: fix 'undefined' line numbers in source code pages Problem: In Iceweasel / Firefox, clicking on a line-number when browsing a source file caused the line

Bug#774808: debsources: line number undefined

2015-01-08 Thread Jason Pleau
Hello! On 08/01/15 10:31 AM, Matthieu Caneill wrote: On 7 January 2015 at 20:43, Reiner Herrmann rei...@reiner-h.de wrote: I'm using Iceweasel 34.0, and when I'm viewing a source file on sources.debian.net and click on a line number, it jumps to the current URL with #Lundefined appended

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2014-11-16 Thread Jason Pleau
, in statsMatchReferenceDb self.assertDictContainsSubset(expected_stats, self.stats) AssertionError: Mismatched values: 'total.ctags', expected: 70166, actual: 70354,'debian_sid.ctags', expected: 21395, actual: 21483,'debian_squeeze.ctags', expected: 30633, actual: 30721 Cheers -- Jason Pleau From

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2014-11-13 Thread Jason Pleau
to split the comma-separated string every time we want to make use of the aliases. I vote for splitting it into a list (or tuple?) when a SuiteInfo object is instantiated. (That's if we do it with a string, and not a 1:N mapping table) HTH, Cheers. Thanks -- Jason Pleau -- To UNSUBSCRIBE, email

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2014-11-11 Thread Jason Pleau
Updated patch I made a proper git patch, so that the new file would be displayed. Also cleaned up the models.py file, I had some leftover from previous strategies. It's still required to regenerate the data in testdata (make distclean dump) to account for the new column Thanks -- Jason Pleau

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2014-11-09 Thread Jason Pleau
/ should redirect to /src/linux/wheezy/. But this should not be hardcoded, since stable will need to redirect to jessie eventually. I have attached a patch of my work so far Cheers -- Jason Pleau diff --git a/debsources/app/views.py b/debsources/app/views.py index 565b17a..dc17e3c 100644

Bug#761149: debsources: allow redirects to package versions based on suite/codename

2014-11-09 Thread Jason Pleau
submit a proper git commit patch once we have ironed out issues :) Note: The data in testdata/ git submodule must be updated (make distclean dump) or else the unit tests will fail because of a missing column. Thanks -- Jason Pleau diff --git a/debsources/app/views.py b/debsources/app/views.py

Bug#761103: debsources: highlight #Lxxx lines by default

2014-11-07 Thread Jason Pleau
Hello Stefano, On 07/11/14 12:24 PM, Stefano Zacchiroli wrote: On Thu, Nov 06, 2014 at 08:09:15PM -0500, Jason Pleau wrote: The attached patch implements your previous suggestions : Awesome, thanks! Last comments: 1) I've added to the new .js file a copyright header pointing to you

Bug#761103: debsources: highlight #Lxxx lines by default

2014-11-06 Thread Jason Pleau
templates. The code is now wrapped in an an anonymous function, to not pollute the global namespace if this javascript file is ever loaded in other pages. Thanks -- Jason Pleau From 8132506a6d178db416f852161e279d367529d8f7 Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Sat, 1 Nov

Bug#764178: debsources: infobox CSS alignment problem with short files

2014-11-05 Thread Jason Pleau
Hey Christophe On 05/11/14 07:51 AM, Christophe Siraut wrote: Hi, My commit adds a padding-right to make sure that even if the file has one short line, it's content will be left-aligned. We could instead limit the expansion of the first column, which contains the line numbers, see

Bug#764178: debsources: infobox CSS alignment problem with short files

2014-11-04 Thread Jason Pleau
Hello Stefano, On 04/11/14 04:44 AM, Stefano Zacchiroli wrote: First of all: thanks a lot for your patch, Jason! On Fri, Oct 31, 2014 at 07:42:23AM -0400, Jason Pleau wrote: From 6cc9f15d51dd35a5afb82a2c3680e3e5dfc0f93b Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Fri

Bug#761103: debsources: highlight #Lxxx lines by default

2014-11-01 Thread Jason Pleau
, it will highlight the whole range, and update the hash as well, allowing one to share the URL. I have tested in Chromium 38, Iceweasel 31.2, and IE8 (I assume it should work for later versions of IE) Cheers -- Jason Pleau From 8bde6c68437ae6634297cdff321b495ed6e9a052 Mon Sep 17 00:00:00 2001 From: Jason

Bug#764178: debsources: infobox CSS alignment problem with short files

2014-10-31 Thread Jason Pleau
Hello again, I seem to have included the wrong patch in my previous email, please see the attached file in this email. Sorry for the noise -- Jason Pleau From 6cc9f15d51dd35a5afb82a2c3680e3e5dfc0f93b Mon Sep 17 00:00:00 2001 From: Jason Pleau ja...@jpleau.ca Date: Fri, 31 Oct 2014 00:05:26

Bug#764178: debsources: infobox CSS alignment problem with short files

2014-10-30 Thread Jason Pleau
Hello, I have made this small patch that fixes the text overlapping on the infobox. The other issue (that the box containing the infobox was not big enough) seems to have been fixed by 0ed831b256a91287ebfe63c9a52cbbb76816a293 on October 12th Cheers -- Jason Pleau From