summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-01-30Use select_related() for some mirror pagesDan McGee2-2/+2
We also traverse relationships here, so select the associated items. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Drastically reduce loading time of Todo listsEvangelos Foutras1-1/+1
Use Django's select_related() on the TodolistPkg QuerySet to avoid making 4 database queries per package. This way we're making just one query, regardless of the number of packages in the Todo list. Local testing with 1000 entries in a Todo list show that the loading time has been reduced from 2675 ms to around 560 ms, while the number of queries has been cut down from 8005, to only 5. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Add Costa Rica IRC channelAaron Griffin1-0/+3
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2009-12-02Add credential requirements tests to devel appIsmael Carnales3-4/+41
* 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-02Add basic tests to public appIsmael Carnales2-0/+49
The addition of a models.py file in public app is needed for django to recognize it as an application for testing. Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-17added #archlinux-gaelic channel, sorted listAndrea Scarpino1-19/+22
2009-11-15Remove default debug setting in main settingsIsmael Carnales1-3/+0
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-13added dummy cache setting to local_settingsIsmael Carnales1-0/+4
2009-11-10added login_required to protect todolists viewsIsmael Carnales1-1/+4
2009-11-10added permission required to protected packages viewsIsmael Carnales1-0/+6
2009-11-10Fix highlighting on main site tabsDan McGee2-8/+7
We should always highlight 'Home' when on the Django site. The sole exception is the download page which has its own special place. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10added USE_ETAGS setting from archweb_pubIsmael Carnales1-0/+2
2009-11-10added chache middlewares and anonymous only cache settingIsmael Carnales1-0/+4
2009-11-10updated packages template files from code of pubIsmael Carnales2-14/+17
2009-11-10update packages detail template with code from pubIsmael Carnales1-13/+20
also added user restrictions
2009-11-10added missing packages views code from archweb_pubIsmael Carnales1-2/+14
2009-11-10added missing packages views from archweb_pubIsmael Carnales6-0/+144
2009-11-10updated news list templateIsmael Carnales1-3/+5
- added title - added permission checks
2009-11-10corrected context variable names in index viewIsmael Carnales1-3/+3
2009-11-10added login_required to devel viewsIsmael Carnales1-0/+5
2009-11-10use RequestContext in mirrors.views.chooseIsmael Carnales1-1/+3
2009-11-10fixed error in mirrors.views.chooseIsmael Carnales1-2/+2
2009-11-10added mirrors app from archweb_pubIsmael Carnales6-0/+101
2009-11-10added sitemaps from archweb_pubIsmael Carnales3-0/+34
2009-11-10added feeds from archweb_pubIsmael Carnales6-0/+54
2009-11-10made every public view return a RequestContextIsmael Carnales2-13/+19
RequestContexts are needed to check if the user is logged in NOTE: Generic views as direct_to_template and object_list always return a request context, so is good to use them :) Later will add a render_template shortcut that adds the RequestContext automatically
2009-11-10use direct_to_template to replace static viewsIsmael Carnales2-17/+5
2009-11-10changed landing viewIsmael Carnales9-79/+34
- moved devel.views.siteindex to public.views.index - using template from public view with added devel menu - added extra styles and images
2009-11-10added public appIsmael Carnales2-0/+16
2009-11-10updated base template to use menu from archweb_pub base templateIsmael Carnales1-6/+6
2009-11-10removed RequireLoginMiddlewareIsmael Carnales2-20/+0
2009-11-10"imported" public app files from archweb_pubIsmael Carnales15-0/+788
2009-11-10fixed error in todolists list viewIsmael Carnales1-2/+2
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales8-48/+48
2009-10-18Correct link to WebSVNThomas Bächler1-1/+1
2009-10-18Adjust SVN links to the WebSVN URL schemeThomas Bächler1-4/+4
2009-10-17Port archweb_pub commit 1f96c7a1182ef75279c18986b708e683f89dd690 to ↵Thomas Bächler3-3/+16
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-10-14reporead: don't blow up on division by zeroDan McGee1-1/+6
We didn't sanity check the length of the DB set, so if it was zero we would blow up. Add a sanity check and also limit the whole thing to only apply if there are > 20 packages in a given {repo, arch} combo. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-10-07Set verify_exists=False on ExternalProjects modelAaron Griffin1-1/+1
This causes issues when entering some URLs. See http://code.djangoproject.com/ticket/9918 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-10-05reporead: ensure we catch all testing repos in ratio checkDan McGee1-8/+9
With community testing, we want to ignore the ratio check failure there as well. Clean up the whole check a bit and store the percentage in a variable as it is useful in both checks and for output purposes. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26reporead: do all DB updates in one transactionDan McGee1-0/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26Make community-testing accessableDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26reporead: join multivalue attributes with ', 'Dan McGee1-1/+1
Fixes FS#14270. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26Update reporead and model to store pkgbaseDan McGee2-2/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-16Add a basic mirror view for the dev siteDan McGee4-1/+41
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-12Fix community links.Dusty Phillips2-2/+3
2009-08-21Add an 'external projects' model and admin for managing the projects page.Dusty Phillips2-1/+10
2009-08-18Apparently you couldn't view the packages page if the user wasn't logged ↵Dusty Phillips2-1/+36
into the admin.
2009-08-12Too many columns in mirror adminDusty Phillips1-1/+1
2009-08-12Merge branch 'master' of /srv/projects/git/archweb_devDusty Phillips2-1/+7