summaryrefslogtreecommitdiff
path: root/packages/views.py
AgeCommit message (Collapse)Author
2010-02-27Bring package files view up to speedDan McGee
Move it away from the numeric pkgid-based view of old to the new pretty URL format. This does nothing to actually make the view show files (or even provide a link to it), but that will come in future commits. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Clean up urlencode usage even moreDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-16More save() -> update() cleanupDan McGee
Use update() instead of for x in y: save(). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-16Clean up adopt/disown logicDan McGee
We can pull the common queryset out into a local variable, as well as using the mass-update function provided on a queryset instead of resorting to iteration. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-16Use unicode-safe urlencode in package searchDan McGee
Django already provides an implementation of urlencode that is Unicode-safe. Use it instead of our own version. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-16Make packages view much more efficientDan McGee
The len() call was killing performance, especially in the default click-thru case where we show the packages list without any filtering (only sorting). Also use a well-placed select_related() to further drop the query count. As noted by the TODO, there is still more that can be done here to improve performance. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10Remove archweb prefix from all importsDan McGee
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08Add OpenSearch support to the siteDan McGee
Implements FS#14185. It is a bit more complex than listed there as I wanted to not hardcode the URLs in the descriptor file; to do this we need to make it a template and fill some things in. We also need to serve the file using the correct mime type. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make marking out of date actually workDan McGee
And honor the packager's notify flag, as Pierre pointed out. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Use select_related() to make a few more places more performantDan McGee
Especially when looking at packages, we always want the arch and repo. Another big hunk of changes deals with the very inefficient signoffs code. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Adjust models and views for nullable maintainerEvangelos Foutras
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Package search: sort maintainer list by usernameDan McGee
Makes it easier to find a user since we have quite a few. FS#18055. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10added permission required to protected packages viewsIsmael Carnales
2009-11-09added missing packages views code from archweb_pubIsmael Carnales
2009-11-09added missing packages views from archweb_pubIsmael Carnales
2009-11-09modified import paths from archweb_dev to archwebIsmael Carnales
2009-10-17Port archweb_pub commit 1f96c7a1182ef75279c18986b708e683f89dd690 to ↵Thomas Bächler
archweb_dev. This is the original commit message by Dan: "Make package SVN links always work This should clean up the links for all varieties of things- different arches (including any), different repos (community and community-testing), and split packages. All of the logic is in one place now and any further changes should be made to the method on the package object."
2009-09-11Fix community links.Dusty Phillips
2009-07-24Repo-based permissions when adopting packages.Dusty Phillips
2009-05-04Fix a bug when someone accesses the update page without POSTINg adopt or ↵Dusty Phillips
disown. Probably occurred by a press of the back button.
2009-04-13FS#11325. Add a 'Target Repo' column to the signoffs page.Dusty Phillips
2008-10-11drop a couple completed to-dos and blank linesDusty Phillips
2008-10-11refactor duplicate signoff codeDusty Phillips
2008-10-10use RequestContext because its standardDusty Phillips
2008-10-10simplify package details viewDusty Phillips
2008-10-07drop id based searchingDusty Phillips
2008-10-07use user messages to communicate statusDusty Phillips
2008-10-07sort returns to first pageDusty Phillips
2008-10-07reorder ifsDusty Phillips
2008-10-07fix sorting issueDusty Phillips
2008-10-07trying to flesh out the pageDusty Phillips
2008-10-07fix the last update scriptDusty Phillips
2008-10-07make sort form workDusty Phillips
2008-10-07make form submit some but not all valuesDusty Phillips
2008-10-07need better than ids for optionsDusty Phillips
2008-10-07replace package search with a nonfunctional newformDusty Phillips
2008-10-05drop a bunch of unusued importsDusty Phillips
2008-10-05drop some unused importsDusty Phillips
2008-08-16#10340 Integrated Signoffs completed but untestedDusty Phillips
2008-08-06improve the templateDusty Phillips
2008-08-06boilerplate for new signoffs codeDusty Phillips
2008-07-30allow anyone to adopt or disown a packageDusty Phillips
2008-07-05 #10213 make package urls be pretty cool, if not awesomeDusty Phillips
2008-06-29drop an unnecessary db hitDusty Phillips
2008-06-29add maintainer column to search resultsDusty Phillips
2008-06-19order by last update on package viewDusty Phillips
2008-04-28Fix for FS#9999eliott
2008-04-28removed flag out of date from backend.eliott
Flagging a package out of date is not needed in the backend. Backend only needs to unflag.
2008-04-09Removed login_required from the individual views.eliott
Not entire dev site requires login.
2008-04-09Changed to arches and repos in the db.eliott
Added them to the django admin interface as well.