Commit Graph

52 Commits

Author SHA1 Message Date
Dan McGee
6e3dc1be01 Move more URLs out of root urlconf
Things are a bit cleaner now.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-13 14:56:43 -06:00
Dan McGee
0e58a2e49f Todo list minor fixes and comments for later
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-10-04 16:35:31 -05:00
Dan McGee
eaa76ae758 Improve todo list view page
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-09 13:36:41 -05:00
Dan McGee
872af225a9 Use direct_to_template in all remaining possible places
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-09-03 13:45:13 -05:00
Dusty Phillips
d316f4b197 Add a basic view for todo lists
Dan: rename template and view to something a bit more concise.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:57:10 -05:00
Dan McGee
cb9c74eff8 Add absolute URL method for todo lists
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-05 22:20:28 -05:00
Evangelos Foutras
86d503af5a Mark the todolists' flag view as never_cache
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-28 06:51:43 -05:00
Dan McGee
0fb770442e Mark a few more pages as never cache
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-24 17:09:41 -05:00
Dan McGee
081ed6c866 Add 'never_cache' decorator in a bunch of places
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-22 12:09:22 -05:00
Dan McGee
8bf0bfeac7 Use Sites framework instead of hardcoded domain name
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-08 08:35:58 -05:00
Dan McGee
32f6f7a4da Rename todolist email template
More in line with our other templates that have .txt extensions.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02 10:44:02 -05:00
Dan McGee
d797eac372 Fix undefined variable issue
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-21 15:48:32 -05:00
Dan McGee
a52e3901c9 Fix package URL in todo list emails
Fixes FS#18935.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-02 17:32:45 -05:00
Dan McGee
e790c2b744 Fix todolist dealing with package maintainers
Forgot to update this, whoops.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-29 20:17:11 -05:00
Dan McGee
d4155f7d0f Use repo.testing flag instead of test-based checks
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06 15:37:02 -06:00
Dan McGee
6e9477ca63 Unify spelling of 'Todo'
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-03-01 21:43:12 -06:00
Dan McGee
1c073bea62 Ensure our cache is correct with AJAX requests
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-27 13:36:58 -06:00
Evangelos Foutras
ce0b9076ee Implement AJAX flagging for todo items
[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-26 21:03:09 -06:00
Dan McGee
d709604102 Remove archweb prefix from all imports
Unnecessary, and lets us standardize on not using it everywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10 00:29:27 -06:00
Dan McGee
f58b354a03 Use select_related() to make a few more places more performant
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-31 15:19:12 -06:00
Evangelos Foutras
09a3a08144 Adjust models and views for nullable maintainer
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-31 13:44:03 -06:00
Evangelos Foutras
61e8a6b4c3 Exclude repos ending with "Testing" from ToDos
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>
2010-01-30 15:55:19 -06:00
Ismael Carnales
6a11b84463 added login_required to protect todolists views 2009-11-10 18:32:47 -02:00
Ismael Carnales
ce662e0e0c fixed error in todolists list view 2009-11-09 22:24:36 -02:00
Ismael Carnales
48904e4857 modified import paths from archweb_dev to archweb 2009-11-09 22:24:34 -02:00
Dusty Phillips
ad9672eeb4 drop some print statements 2008-10-11 20:09:15 -04:00
Dusty Phillips
f260843deb use RequestContext because its standard 2008-10-10 18:51:21 -04:00
Dusty Phillips
82edf2d07b port to django 1.0 2008-10-10 18:00:35 -04:00
Dusty Phillips
103d1a347a drop a bunch of unusued imports 2008-10-05 21:46:28 -04:00
Dusty Phillips
7d8feb3370 drop some unused imports 2008-10-05 21:41:08 -04:00
Dusty Phillips
64c6711ff3 fix problem with to-do list showing testing packages 2008-07-22 20:47:26 -04:00
Dusty Phillips
e354b32898 fix up permissions on todolists 2008-07-08 21:20:06 -04:00
Dusty Phillips
eb6feb5e6d stupid stupid variable overwrite 2008-07-01 19:12:47 -04:00
Dusty Phillips
d91e5e0268 mistake 2008-07-01 19:02:14 -04:00
Dusty Phillips
bd2344b0b5 missing import 2008-07-01 18:56:54 -04:00
Dusty Phillips
94740a1016 add reminder e-mails to todo lists 2008-07-01 18:43:37 -04:00
Dusty Phillips
d241ae78ee fix problem with deleting packages from a list 2008-06-29 19:17:20 -04:00
Dusty Phillips
3d40da381c refactor package cleaning to be duplicate sensitive 2008-06-27 21:16:03 -04:00
Dusty Phillips
6b013d99fc add an 'edit todolist' functionality 2008-06-27 21:07:10 -04:00
Dusty Phillips
fdaa35a938 refactor todo packages a bit 2008-06-27 20:10:28 -04:00
Dusty Phillips
1bd352cb29 use newforms on todo list 2008-06-27 18:40:10 -04:00
Dusty Phillips
34c744967a better exception handling 2008-06-27 17:18:08 -04:00
Dusty Phillips
c1d28bce33 use a nicer decorator 2008-06-27 16:50:01 -04:00
eliott
751ac09698 Removed login_required from the individual views.
Not entire dev site requires login.
2008-04-09 22:43:07 -07:00
eliott
3eea31d8f2 Changed to arches and repos in the db.
Added them to the django admin interface as well.
2008-04-09 19:28:24 -07:00
eliott
4184dae7c4 small fix to todolists 2008-04-05 13:42:01 -07:00
eliott
3e31808521 More changes to the multiarch model. 2008-03-08 12:11:02 -08:00
eliott
9b7b512254 Moved models around 2008-03-08 00:13:41 -08:00
eliott
3e297efad8 Massive retab fest.
Also added vim command comment to the end of files.
2007-12-29 16:42:55 -08:00
eliott
15ceff77fe Modified render_template and renamed it to render_response (consistent with
archweb_pub conventions).
Moved pkgmaint_guide to a template.
2007-12-29 15:34:02 -08:00