summaryrefslogtreecommitdiffstats
path: root/devel/views.py
AgeCommit message (Collapse)AuthorFilesLines
2010-08-28PyLint suggested cleanupsDan McGee1-13/+21
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-27Add table sorting to a handful of pagesDan McGee1-6/+7
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-07-07Update code to use new flag_date columnDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06Show incomplete todo list packages in dev dashboardDan McGee1-4/+9
Implements FS#20081. 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-2/+4
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-05-24Change link to new dev site locationDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-04Ensure changing profile email doesn't reset passwordDan McGee1-9/+6
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-03-28Simplify code now that pkgbase is always definedDan McGee1-1/+1
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-27Move package maintainer off of package modelDan McGee1-3/+10
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-02-10Remove archweb prefix from all importsDan McGee1-4/+4
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-01Make marking out of date actually workDan McGee1-5/+3
And honor the packager's notify flag, as Pierre pointed out. 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-30Use select_related() for some mirror pagesDan McGee1-1/+1
We also traverse relationships here, so select the associated items. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-12-02Add credential requirements tests to devel appIsmael Carnales1-4/+2
* 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-11-10added login_required to devel viewsIsmael Carnales1-0/+5
2009-11-10changed landing viewIsmael Carnales1-9/+0
- moved devel.views.siteindex to public.views.index - using template from public view with added devel menu - added extra styles and images
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-4/+4
2009-09-16Add a basic mirror view for the dev siteDan McGee1-0/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-12merge fixDusty Phillips1-3/+3
2009-08-11So now the created user passwords should work and Aaron will be less pissed ↵Dusty Phillips1-4/+4
off at me.
2009-08-10Sometimes its better if you test your code before deploying. Other times, ↵Dusty Phillips1-0/+1
you just fix the missing imports in a second commit.
2009-08-10Add a page to aid Aaron in user creation.Dusty Phillips1-1/+52
2009-01-31Put maintainer list by last name.Dusty Phillips1-1/+1
2008-11-15alphabetical order on maintainers and packagesDusty Phillips1-1/+1
2008-11-09don't show inactive users in dev listDusty Phillips1-1/+1
2008-10-12simplify both look and code for dashboardDusty Phillips1-13/+11
2008-10-11use RequestContext because its standardDusty Phillips1-6/+7
2008-10-11drop useless viewDusty Phillips1-6/+3
2008-10-11fix broken maintainer packages linksDusty Phillips1-14/+6
2008-10-07make form submit some but not all valuesDusty Phillips1-2/+2
2008-10-07fairly invasive refactor to developer dashboard to be more django friendlyDusty Phillips1-22/+5
2008-10-07indicate that index is the dev dashboardDusty Phillips1-1/+1
2008-10-07fix bug introduced by previous code removalDusty Phillips1-0/+2
2008-10-07Dusty's 80 char issueDusty Phillips1-2/+2
2008-10-07remove senseless codeDusty Phillips1-5/+0
2008-10-07drop a bunch of static stuff necessary only in archweb_pubDusty Phillips1-28/+0
2008-10-07remove reference to old cvs entryDusty Phillips1-3/+0
2008-10-06drop a bunch of unusued importsDusty Phillips1-3/+1
2008-09-17port profile_form to newformsDusty Phillips1-15/+25
2008-06-22Remove guide from dashboard and link to wikiFix for FS#10647Dusty Phillips1-7/+0
2008-06-05Added an ex-developer 'fellows' page.eliott1-0/+4
2008-04-10Removed login_required from the individual views.eliott1-6/+0
Not entire dev site requires login.
2008-04-10Changed to arches and repos in the db.eliott1-16/+13
Added them to the django admin interface as well.
2008-04-05Fix for FS#9554eliott1-1/+4
Backported and modified from 'master'
2008-03-23Added the ability to see flagged packages only, per use or repoeliott1-9/+16
2008-03-23Refactored the model to remove arch and repo tables.eliott1-8/+8
Refactored the model to remove the arch and repo tables. Those data points are now encapsulated in the package table as an ENUM field. Changes to models and templates as needed.
2008-03-08More changes to the multiarch model.eliott1-8/+15
2008-03-08renamed donator model to donor.eliott1-6/+6
remove category model
2008-03-08Moved models aroundeliott1-7/+3