Commit Graph

68 Commits

Author SHA1 Message Date
Dan McGee
51fca0c98d Check for correct permission when creating users
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-12 10:20:00 -05:00
Dan McGee
fa4f5c15c8 Restore flagged package count by maintainer in dashboard
We need to do a little dropping into SQL to accomplish this, but it isn't
all that bad to actually do and we can do the whole thing in one query.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-10 18:27:18 -05:00
Dan McGee
7dba848eaf Move mirror models out of main app
South actually makes this relatively painless if you get everything right,
so might as well start getting these out of the legacy main application to
eventually eliminate models being separate from their views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-06 12:01:46 -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
Dan McGee
d57696c801 PyLint suggested cleanups
We had a bunch of extra imports, non-conventional variable names, spacing
issues, etc. that were relatively low-hanging fruit to clean up. Fix them
and make the code a bit cleaner in the process.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 11:41:19 -05:00
Dan McGee
e247e0dd8c Add table sorting to a handful of pages
Anything that it makes sense to add it to gets the treatment here. Anything
with pagination can wait as that will be tougher. We also need to deal with
odd/even formatting.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:20:14 -05:00
Dan McGee
fba1d29c1b Update code to use new flag_date column
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:36:50 -05:00
Dan McGee
85807311ca Show incomplete todo list packages in dev dashboard
Implements FS#20081.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-05 22:22:19 -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
a1f7520b8c Change link to new dev site location
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-24 10:39:26 -05:00
Dan McGee
8291b1d5b7 Ensure changing profile email doesn't reset password
We weren't checking to see if the password form fields were empty before
setting the user password, causing it to get reset if anything was filled
out and submitted on this page. FS#19345.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-04 10:25:11 -05:00
Dan McGee
1113462edc Simplify code now that pkgbase is always defined
This allows some of our queries to get a lot simpler as well as removing the
pkgbase_safe property added earlier.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27 18:09:42 -05:00
Dan McGee
fe832ea845 Move package maintainer off of package model
This is an attempt to fix our long-standing problems dealing with maintainer
information. Move the actual maintainer information off of the package model
into a PackageRelation object, which has some flexibility to later represent
more than just maintainership.

This solves multiple problems:
* If a package gets accidentally deleted, so did the maintainer info
* Testing packages have always shown up as orphans
* With split packages, it was easy to miss some of the sub-packages

This commit does not include the deletion of the original maintainer column;
that will come at a later time when I feel more confident that the data was
migrated correctly.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27 16:15:20 -05: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
a16b4d9ecd Make marking out of date actually work
And honor the packager's notify flag, as Pierre pointed out.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31 17:52:08 -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
Dan McGee
85ff158e2d Use select_related() for some mirror pages
We also traverse relationships here, so select the associated items.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30 13:53:11 -06:00
Ismael Carnales
3f8fe75d36 Add credential requirements tests to devel app
* Add models.py required file to app
* Use user_passes_test instead of custom superuser checking in
  new_user_form as it implements the same "next" redirection as
  login_required

Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-12-01 23:26:14 -02:00
Ismael Carnales
129255e79c added login_required to devel views 2009-11-09 22:24:49 -02:00
Ismael Carnales
b4999b495e changed landing view
- moved devel.views.siteindex to public.views.index
 - using template from public view with added devel menu
 - added extra styles and images
2009-11-09 22:24:41 -02:00
Ismael Carnales
48904e4857 modified import paths from archweb_dev to archweb 2009-11-09 22:24:34 -02:00
Dan McGee
9dc89e8287 Add a basic mirror view for the dev site
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-15 20:14:06 -05:00
Dusty Phillips
6bcf9709f2 merge fix 2009-08-12 17:33:23 -04:00
Dusty Phillips
a085da1c22 So now the created user passwords should work and Aaron will be less pissed off at me. 2009-08-11 13:55:33 -06:00
Dusty Phillips
9cc1ac8e46 Sometimes its better if you test your code before deploying. Other times, you just fix the missing imports in a second commit. 2009-08-10 16:02:41 -04:00
Dusty Phillips
0d2560fa55 Add a page to aid Aaron in user creation. 2009-08-10 15:47:02 -04:00
Dusty Phillips
1ad008f335 Put maintainer list by last name. 2009-01-30 18:50:13 -05:00
Dusty Phillips
0dbde37b20 alphabetical order on maintainers and packages 2008-11-15 15:42:33 -05:00
Dusty Phillips
c49adbc65c don't show inactive users in dev list 2008-11-09 11:13:59 -05:00
Dusty Phillips
7dedeeafd5 simplify both look and code for dashboard 2008-10-11 19:50:08 -04:00
Dusty Phillips
f260843deb use RequestContext because its standard 2008-10-10 18:51:21 -04:00
Dusty Phillips
0e0265a624 drop useless view 2008-10-10 18:51:06 -04:00
Dusty Phillips
13d730ab2b fix broken maintainer packages links 2008-10-10 18:32:25 -04:00
Dusty Phillips
fcc2a8a480 make form submit some but not all values 2008-10-07 15:59:40 -04:00
Dusty Phillips
fb9158dec8 fairly invasive refactor to developer dashboard to be more django friendly 2008-10-07 11:48:58 -04:00
Dusty Phillips
fd26d34abf indicate that index is the dev dashboard 2008-10-07 11:13:34 -04:00
Dusty Phillips
627f685b0d fix bug introduced by previous code removal 2008-10-07 11:11:51 -04:00
Dusty Phillips
c320458af6 Dusty's 80 char issue 2008-10-07 11:10:21 -04:00
Dusty Phillips
631417bc28 remove senseless code 2008-10-07 11:03:52 -04:00
Dusty Phillips
a2c25fa12a drop a bunch of static stuff necessary only in archweb_pub 2008-10-07 11:02:58 -04:00
Dusty Phillips
6d632344f1 remove reference to old cvs entry 2008-10-07 10:57:27 -04:00
Dusty Phillips
103d1a347a drop a bunch of unusued imports 2008-10-05 21:46:28 -04:00
Dusty Phillips
851e6d55be port profile_form to newforms 2008-09-16 21:12:26 -04:00
Dusty Phillips
7e0f1c0dae Remove guide from dashboard and link to wikiFix for FS#10647 2008-06-21 19:38:18 -04:00
eliott
b6d6cc6062 Added an ex-developer 'fellows' page. 2008-06-04 18:28:27 -07: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
5f48dda94b Fix for FS#9554
Backported and modified from 'master'
2008-04-05 13:27:10 -07:00
eliott
ce564d73a6 Added the ability to see flagged packages only, per use or repo 2008-03-22 21:01:16 -07:00