summaryrefslogtreecommitdiffstats
path: root/todolists/views.py
AgeCommit message (Collapse)AuthorFilesLines
2010-10-04Todo list minor fixes and comments for laterDan McGee1-6/+8
When we show the edit todo list page, use a sorted list retrieved straight from the database instead of a unordered set() we create at the application level. Also add some comments for potential later improvements on transaction boundaries and async emailing. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-09Improve todo list view pageDan McGee1-3/+12
Add total package count and incomplete package count columns. Also reduce the number of total queries by killing the query per row that was happening before. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03Use direct_to_template in all remaining possible placesDan McGee1-13/+10
Rather than the need to include RequestContext() calls directly, we can just use direct_to_template to do all the work for us. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25Add a basic view for todo listsDusty Phillips1-0/+5
Dan: rename template and view to something a bit more concise. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06Add absolute URL method for todo listsDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-28Mark the todolists' flag view as never_cacheEvangelos Foutras1-2/+1
Also remove the @vary_on_headers('X-Requested-With') since it's irrelevant now. Dan: remove now unnecessary import. Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-25Mark a few more pages as never cacheDan McGee1-0/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-22Add 'never_cache' decorator in a bunch of placesDan McGee1-0/+4
Now that we cache everything, we need to ensure anyone doing edits and such gets the live data and not some cached version that was already updated and is now stale. Add the never_cache decorator to any of the CUD screens as well as a few others that might benefit from always being regenerated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-08Use Sites framework instead of hardcoded domain nameDan McGee1-1/+1
Instead of putting 'www.archlinux.org' all over the place, use the Django sites framework to pull the site name out of the database. Now these amazing things will work if you are running locally and decide to change the site! Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02Rename todolist email templateDan McGee1-1/+1
More in line with our other templates that have .txt extensions. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-21Fix undefined variable issueDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-03Fix package URL in todo list emailsDan McGee1-1/+1
Fixes FS#18935. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-30Fix todolist dealing with package maintainersDan McGee1-3/+3
Forgot to update this, whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Use repo.testing flag instead of test-based checksDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-02Unify spelling of 'Todo'Dan McGee1-3/+3
We used 'Todo', 'ToDo', and 'To-do' in different places. Unify them all to the first. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Ensure our cache is correct with AJAX requestsDan McGee1-0/+2
Since the same URLs serve two different responses based on the request being AJAX or not, we want to ensure we don't cache the wrong one and serve it up incorrectly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Implement AJAX flagging for todo itemsEvangelos Foutras1-6/+11
[Some trailing whitespace got killed in the process. :3] Dan: I made a few small changes including moving the jQuery include down above the other script block; since it is not needed right away it can be loaded later in the page. Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10Remove archweb prefix from all importsDan McGee1-1/+1
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Use select_related() to make a few more places more performantDan McGee1-1/+1
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 Foutras1-1/+1
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-30Exclude repos ending with "Testing" from ToDosEvangelos Foutras1-1/+2
This should fix the issue with Community-Testing packages appearing in ToDo lists. After this change has been applied, simply edit and save a ToDo list to make its Community-Testing packages go away. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10added login_required to protect todolists viewsIsmael Carnales1-1/+4
2009-11-10fixed error in todolists list viewIsmael Carnales1-2/+2
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-1/+1
2008-10-12drop some print statementsDusty Phillips1-3/+1
2008-10-11use RequestContext because its standardDusty Phillips1-9/+9
2008-10-11port to django 1.0Dusty Phillips1-12/+14
2008-10-06drop a bunch of unusued importsDusty Phillips1-1/+1
2008-10-06drop some unused importsDusty Phillips1-5/+2
2008-07-23fix problem with to-do list showing testing packagesDusty Phillips1-1/+1
2008-07-09fix up permissions on todolistsDusty Phillips1-2/+2
2008-07-02stupid stupid variable overwriteDusty Phillips1-4/+9
2008-07-02mistakeDusty Phillips1-1/+1
2008-07-02missing importDusty Phillips1-0/+1
2008-07-02add reminder e-mails to todo listsDusty Phillips1-2/+25
2008-06-30fix problem with deleting packages from a listDusty Phillips1-0/+6
2008-06-28refactor package cleaning to be duplicate sensitiveDusty Phillips1-6/+5
2008-06-28add an 'edit todolist' functionalityDusty Phillips1-0/+32
2008-06-28refactor todo packages a bitDusty Phillips1-8/+3
2008-06-28use newforms on todo listDusty Phillips1-24/+41
2008-06-27better exception handlingDusty Phillips1-2/+4
2008-06-27use a nicer decoratorDusty Phillips1-2/+2
2008-04-10Removed login_required from the individual views.eliott1-5/+1
Not entire dev site requires login.
2008-04-10Changed to arches and repos in the db.eliott1-0/+1
Added them to the django admin interface as well.
2008-04-05small fix to todolistseliott1-5/+8
2008-03-08More changes to the multiarch model.eliott1-1/+1
2008-03-08Moved models aroundeliott1-3/+2
2007-12-30Massive retab fest.eliott1-0/+3
Also added vim command comment to the end of files.
2007-12-30Modified render_template and renamed it to render_response (consistent witheliott1-39/+38
archweb_pub conventions). Moved pkgmaint_guide to a template.
2007-12-22renamed importseliott1-3/+3