summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-10-29Use HTTPS for links to AURDan McGee4-5/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-29Always use HTTPS for jQueryDan McGee1-4/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-27Use CDN on the artwork pageDan McGee1-38/+40
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-27Allow index and donate page to use resources from CDNDan McGee2-12/+20
The index page is obviously hit more than just about every other page, so this will benefit the most from moving the sponsor images to a different domain. The donate page uses the same images. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-27Add tag for inserting CDN prefix on media URLsDan McGee1-2/+18
This tag will just be placed before any media reference that is available on the CDN; if the CDN is enabled and CDN_PATH/CDN_PATH_SECURE are defined the correct URL will be generated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Make package differences JS a bit more efficientDan McGee2-15/+21
Use an id-based selector so we can get the necessary table rows to filter a lot more quickly than a lengthy CSS selector. Also use traversal rather than selectors when grabbing the package versions. This looked like a 3x-4x increase in speed while testing locally. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Upgrade to jQuery 1.4.3Dan McGee3-155/+167
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-22Add flag date column to developer dashboard listDan McGee1-0/+4
This only implements about 25% of FS#14656, but it is a good start and trivial to add for now. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-21Show a message when filelist is out of dateDan McGee3-3/+8
This addresses FS#21394 and ensures that the website is less misleading when a package gets new files but they are not yet reflected in the shown list. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-21Apply testing style to multilib-testingDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-21Package differences small updatesDan McGee2-3/+3
* Add 'multilib-testing' to the CSS class list to hide for [multilib] * Select 'Only In Both' by default, which is probably the most useful option * Unselect 'Minor Version Mismatches' by default Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-19Show flag out-of-date date on package details pageDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-19Unify hyphenation of out-of-date textDan McGee5-5/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-18Move hardcoded email address to settings fileDan McGee2-1/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-18Comment out paypal donations for nowDan McGee2-0/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Show all mirrors if no IP version specifiedDan McGee1-6/+6
I'm eating my words on this one- we don't want to filter to none() if we don't have an IP version specified, because people hitting the URL without a ip_version parameter would no longer get any mirrors back. Filter if they are provided by using a Q() object. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Allow filtering of mirrorlist by IP-versionPyroPeter1-2/+17
Dan: Use a forms.MultipleChoiceField to match the protocol selection. Signed-off-by: PyroPeter <abi1789@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Mirror check script cleanupDan McGee1-10/+7
Don't import all the constants from logging, just use logging.* instead. Also, fix some typos that somehow snuck into one of my commits. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Add mirrorresolv manage.py commandPyroPeter1-0/+55
Dan: * Fix up some style issues such as spacing between operators * Ensure one failed lookup doesn't crash the whole script * Be silent out of the box if there are no errors, just like mirrorcheck Signed-off-by: PyroPeter <abi1789@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Add has_ipv{4,6} to MirrorUrlPyroPeter2-0/+68
Dan: Add some more useful labels for use in the admin. Signed-off-by: PyroPeter <abi1789@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Add 'All' choice and make it the defaultPyroPeter1-2/+3
Signed-off-by: PyroPeter <abi1789@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Connect post_save signals where they will always be triggeredDan McGee4-24/+37
We need to do this in the models.py files, otherwise the post_save signal might not be connected right away on launch of the application. Move them over there, add a dispatch_uid so it only gets hooked up once, and do some other function moving around so we don't have circular imports. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Add ability to clear a cached function resultDan McGee1-4/+13
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-12mirrorcheck: catch and handle another socket timeout caseDan McGee1-3/+10
We were seeing processes hang on the Arch server. It looks like there are ways for socket.timeout to come out of the main check code, so add another except block to catch this case. In addition, make sure we always call task_done() even on failures so processes eventually die. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-10Update link to AirVMDan McGee2-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-10Fix trademarks email typoDan McGee1-1/+1
FS#21157. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-09Fix potential race conditions in cachingDan McGee1-14/+14
Use a 'set to None' sentinel to indicate data updates are in progress and we need to hold off a bit on caching a new value. This logic is gleamed from the "Scaling Django" slides presented by Mike Malone and available freely on SlideShare. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Fix README instructionsDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Ensure last modified times use UTCDan McGee1-0/+16
We were cheating before and using non-UTC times; adjust the values we get back from the database as appropriate so our times are not bogus. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Store package feed last modified date in memcachedDan McGee1-9/+28
Just like what we did for news items, we can do the same for packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Move import to top levelDan McGee1-2/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Store latest news date in memcachedDan McGee1-2/+23
This saves two database queries each request, meaning no database hits at all if we are just going to return a 304 response. It also requires adding a post_save signal to ensure our cache is updated with the correct latest news date upon saving a news item. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Factor out common last modified code for news feedDan McGee1-7/+12
This will set up retrieving this value from memcached as well as some other changes to come. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-07Factor check completion pct into mirror scoreDan McGee2-4/+10
Use it as the divisor in our slightly longer equation. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-07mirrorcheck: record duration on file not found errorsDan McGee1-1/+16
On an HTTP 404, FTP 550, or inability to parse the lastsync file, record the duration of the check even though we couldn't get a time from the mirror. This allows for these checks to show up as completed but in error, which is more what. Previously, inability to parse the date was also recorded as a success, so change that to be a failure and record an error message with it. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-07Add a merchandise storeDan McGee1-2/+4
And also update the lingo we use here, 'schwag' implies free and can be a bit confusing for people to see, especially non-English speakers. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-06Make it actually possible to upload a new dev imageDan McGee2-2/+2
We need to both submit the form with the correct encoding and then bind the form itself to request.FILES and not just request.POST. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Adding changing of user profile detailsAngel Velasquez3-6/+24
The idea of this patch is allow to the developers who have an account, to change their data without asking some admin to do it for them. Dan: put private email address field back as it is used for a different purpose; add some help text and field names as appropriate. Signed-off-by: Angel Velasquez <angvp@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Fix executable mode on imageDan McGee1-0/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Make AirVM image an actual PNGDan McGee1-0/+0
I saved this in here as a PNG when in fact it was a GIF. Use optipng to convert it and get a smaller file size. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Make it possible to override settingsDan McGee1-9/+15
By importing local settings at the end, you can override settings specified in settings.py. Helpful for something like the Django debug toolbar. The template loader needs to come last, however, in order to respect the TEMPLATE_DEBUG setting. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Make manage.py use python2 binaryDan McGee1-1/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Update AirVM brandingDan McGee4-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Make user profile a OneToOneFieldDan McGee6-6/+156
We had this set up as a unique ForeignKey before, which adds some indirection due to the RelatedManager object being there. By making it a OneToOneField, we can get the profile object directly, enforce uniqueness, and also use it in select_related() calls to make our profiles page a bit more efficient. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Switch another query to use is_downloadDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Add some select_related() magicDan McGee2-2/+2
Made obvious when poking around with the Django debug toolbar. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-04Todo list minor fixes and comments for laterDan McGee2-7/+10
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-04reporead: ignore nicknames in name matching codeDan McGee1-0/+4
2010-10-02Fix an off by one error in math for check intervalDan McGee1-1/+5
Because we are averaging the interval and not the value, we need to subtract one from the total we are dividing by. Whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-01Allow donors to be invisibleDan McGee4-1/+156
Signed-off-by: Dan McGee <dan@archlinux.org>