Magnus Hagander [Sat, 17 Aug 2013 15:32:36 +0000 (17:32 +0200)]
Move docs templates into the docs/ app, now that they are not plain pages
Magnus Hagander [Sat, 17 Aug 2013 15:28:36 +0000 (17:28 +0200)]
Get the list of documentation versions out of the database
Instead of having to update this list manually in multiple places when
releasing new versions, just take the information out of the database
where it has to be anyway.
Fixes #90
Closes #93
Also make the code automatically pick up wich PDF files exist in the
static checkout, and auto-detect their size, both A4 and US sizes. This
removes yet one more manual step, yay!
Fixes #163
Magnus Hagander [Sat, 17 Aug 2013 14:47:14 +0000 (16:47 +0200)]
Make an actual foreign key between docs versions and core versions
This was originally not done because we had a lot of old legacy data
that didn't have entries in both tables. This is no longer the case,
and the docloads script already enforced that it couldn't happen again.
Requires SQL:
ALTER TABLE core_version ADD CONSTRAINT version_unique_tree UNIQUE(tree);
ALTER TABLE docs ADD CONSTRAINT docs_version_fkey FOREIGN KEY (version) REFERENCES core_version(tree);
Magnus Hagander [Sat, 17 Aug 2013 14:32:37 +0000 (16:32 +0200)]
Don't generate broken links to /docs/0.0/ in the sitemap
Generate proper /devel/ URLs, and then exclude them again in robots.txt
so we don't include them in google results, but we do include them in
our own.
Magnus Hagander [Sat, 17 Aug 2013 14:16:52 +0000 (16:16 +0200)]
Include development and beta versions in search indexes
This includes both the sitemap used by google and friends and our own
site index, which uses the sitemap to decide which URLs to crawl.
Fixes #171
Closes #172
Magnus Hagander [Sat, 17 Aug 2013 14:10:08 +0000 (16:10 +0200)]
Indicate survey posting date on survey result page
Fixes #207
Magnus Hagander [Sat, 17 Aug 2013 13:55:30 +0000 (15:55 +0200)]
Explicitly list beta and development versions in docs as "devel"
Previously we listed both those as unsupported, which confused some users
particularly with new beta releases. While they are technically not supported
yet, it gave off the image that specific features would not be in newer
versions anymore, since they got listed as unsupported.
In passing, fix the style of the links in case they only exist in old
versions, which would put an extra | character in the version list.
Magnus Hagander [Sat, 17 Aug 2013 13:35:42 +0000 (15:35 +0200)]
Use a proper database field for beta releases
This replaces the previous ugly hack where beta versions had a negative number
as latestminor, giving a much cleaner model.
Requires SQL:
ALTER TABLE core_version ADD COLUMN beta boolean NOT NULL DEFAULT 'f';
ALTER TABLE core_version ALTER COLUMN beta DROP DEFAULT;
(Yes, we really need to move to something that can do automatic migrations)
Magnus Hagander [Sat, 17 Aug 2013 13:31:38 +0000 (15:31 +0200)]
Indicate unsupported versions in RSS feed
Magnus Hagander [Wed, 14 Aug 2013 09:48:53 +0000 (11:48 +0200)]
Remove extra closing tag
Stefan Kaltenbrunner [Tue, 13 Aug 2013 21:56:32 +0000 (23:56 +0200)]
bring the example code for the mediawiki plugin more in line with what
we actually use in production, this mostly consists of the "new style" support
for raw data passthrough, but does not fix the actual problem (which is dealing
with url "double" encoding/decoding - or rather the loss of information about
that) yet...
Will fix that and sync up exactly with the production code for MW 1.19 soon...
Stefan Kaltenbrunner [Tue, 13 Aug 2013 21:22:23 +0000 (23:22 +0200)]
fix typo - note by Stephen Frost on IRC
Stefan Kaltenbrunner [Fri, 9 Aug 2013 20:22:55 +0000 (22:22 +0200)]
cosmetic fix - use non obsolete versions in explaining out versioning schema
Stefan Kaltenbrunner [Fri, 9 Aug 2013 20:17:47 +0000 (22:17 +0200)]
use 9.2 as default for the various linux distribution installation,
instructions - we might want to automate this but it is not immediately
clear on how so this will do for now.
Magnus Hagander [Wed, 10 Jul 2013 07:57:25 +0000 (09:57 +0200)]
Exclude some URLs from the archives in robots.txt
This makes no major changes from what was there before from a pure search
perspective:
* /message-id/flat/ was already flagged with a META tag to be excluded from
indexing, since it's the same data as /message-id/.
* /list/ was already flagged with a META tag to be excluded from indexing,
since it carries no actual content, just links, and the links and descriptions
of the lists is already available under /community/ as well.
* /message-id/raw/ required a login so it produced a bunch of 401's anyway,
but this way we don't need to probe for that.
It's more efficient to block these things in robots.txt so we don't have to
spend the processing power to render a page that's not going to get indexed
anyway.
Magnus Hagander [Mon, 1 Jul 2013 20:47:58 +0000 (22:47 +0200)]
Ensure db connection is closed before script exits
This is required in django 1.4, but was closed automatically back
in 1.2 when it was created.
Dave Page [Thu, 27 Jun 2013 13:22:47 +0000 (14:22 +0100)]
PostgreSQL 9.3 beta 2.
Magnus Hagander [Thu, 20 Jun 2013 15:12:43 +0000 (17:12 +0200)]
Make it possible to pre-select a mailinglist in the subcription form
This is done by putting #<id> at the end of the URL.
Magnus Hagander [Thu, 20 Jun 2013 13:52:43 +0000 (15:52 +0200)]
Typo fix
Magnus Hagander [Thu, 20 Jun 2013 13:16:47 +0000 (15:16 +0200)]
Update community authentication to pass an arbitrary datablock instead of url
This makes it possible to pass URLs that will fail when they end up being double
escaped in some cases, since they contain non-url-safe characters. Instead, they'd
be base64-encoded, and thus safe.
Also update the django community auth provider to do just this, including encrypting
the data with the site secret key to make sure it can't be changed/injected by
tricking the user to go directly to the wrong URL.
Magnus Hagander [Thu, 20 Jun 2013 10:29:27 +0000 (12:29 +0200)]
Fix creation of new objects with notifications that have ManyToMany relationships
This broke in django 1.4 since it fires based on the contents of an error message,
and the message changed. Most visible due to the fact that it completely broke
creation of new organsation objects.
Magnus Hagander [Thu, 20 Jun 2013 09:40:13 +0000 (11:40 +0200)]
Revert to SHA1 hashing for stored passwords
This is required for the old style community auth system that is still
in use by the commitfest app. Once that has been retired or upgraded,
this patch should be reverted.
Existing passwords are automatically converted once the user logs in to
the main website once.
Magnus Hagander [Sun, 16 Jun 2013 19:54:09 +0000 (21:54 +0200)]
Update for new version of feedparser library
Magnus Hagander [Sun, 16 Jun 2013 16:32:06 +0000 (18:32 +0200)]
Exclude the ftp info upload page from CSRF checks
This is a pure PUT from a trusted IP, so it fails with 403 with the
CSRF middleware.
Magnus Hagander [Sun, 16 Jun 2013 15:05:16 +0000 (17:05 +0200)]
Remove safe tag for markdown
Broken in newer versions of django, and since all our content is moderated anyway,
it isn't strictly necessariy for us anyway.
Magnus Hagander [Sat, 25 May 2013 18:34:29 +0000 (14:34 -0400)]
Update docs
Magnus Hagander [Sat, 25 May 2013 18:32:53 +0000 (14:32 -0400)]
Add a pip requirements file for virtualenv deployments
Magnus Hagander [Sat, 25 May 2013 18:17:22 +0000 (14:17 -0400)]
Fix parameters to inherited change_view function
Must be the same as in in the inherited-from class, or we ended up
passing a python dict as a string, and render the contents of it as
the "action" attribute on the form.
Magnus Hagander [Sat, 25 May 2013 18:17:09 +0000 (14:17 -0400)]
Sync up the admin index template with the one from django 1.4
Magnus Hagander [Sat, 25 May 2013 18:16:38 +0000 (14:16 -0400)]
Update contexts and processors for django 1.4
Some requirements from the admin interface are also mandatory now,
so include those.
Magnus Hagander [Sat, 25 May 2013 18:16:07 +0000 (14:16 -0400)]
Switch to using staticfiles app for serving, well, static files
This is required by the new admin interface
Magnus Hagander [Sat, 25 May 2013 18:11:55 +0000 (14:11 -0400)]
Update db settings for new database config format
Magnus Hagander [Sat, 25 May 2013 18:10:39 +0000 (14:10 -0400)]
Switch to using the new feeds framework
Magnus Hagander [Sat, 15 Jun 2013 09:20:17 +0000 (11:20 +0200)]
Remove mention of news server, since it doesn't exist anymore
Magnus Hagander [Sun, 9 Jun 2013 18:22:31 +0000 (20:22 +0200)]
Don't crash when valid enddate and invalid startdate is entered for event
When startdate is cleaned and invalid it's removed from cleaned_data, so
we cannot test it in clean_enddate.
Peter Eisentraut [Wed, 5 Jun 2013 07:19:10 +0000 (08:19 +0100)]
Add Homebrew to the Mac OS X download page.
Stefan Kaltenbrunner [Sun, 26 May 2013 23:59:03 +0000 (19:59 -0400)]
fix a minor typo
Stefan Kaltenbrunner [Sun, 26 May 2013 23:58:09 +0000 (19:58 -0400)]
change example rewrite rules to something that also catches the "nocache"
versions of the mw pages
Stefan Kaltenbrunner [Sun, 26 May 2013 17:31:00 +0000 (13:31 -0400)]
remove the code to add default user_options for the upcoming MW 1.19 upgrade
user preferences in MW pos 1.18 got moved to a seperate table and only stuff
that is _NOT_ default should be stored there. Despite what the documentation
says actually having data left in user_options is harmful and will break
random functionality like preference handling
Stefan Kaltenbrunner [Sun, 26 May 2013 16:34:47 +0000 (12:34 -0400)]
add 9.3 to the feature matrix so that thom can start updating it
Magnus Hagander [Tue, 21 May 2013 18:07:01 +0000 (14:07 -0400)]
Prevent event swith enddate before startdate
Magnus Hagander [Tue, 21 May 2013 18:05:06 +0000 (14:05 -0400)]
Prevent changing of dates on already approved news and events
Since this can be used to bypass moderator approval and move items
to the frontpage of the site, they're blocked. We still allow the user
to make corrections in the text and other such fields.
Dave Page [Wed, 15 May 2013 14:43:38 +0000 (15:43 +0100)]
Add new books from Packt
Dave Page [Mon, 13 May 2013 11:04:48 +0000 (12:04 +0100)]
Announce 9.3b1
Dave Page [Fri, 10 May 2013 08:27:00 +0000 (09:27 +0100)]
Release, but don't announce 9.3 beta 1
Jonathan S. Katz [Wed, 8 May 2013 20:37:06 +0000 (16:37 -0400)]
Proper appending of pug list
Jonathan S. Katz [Wed, 8 May 2013 20:25:24 +0000 (16:25 -0400)]
Fixed indentation on pugs/views
Magnus Hagander [Wed, 8 May 2013 20:13:12 +0000 (22:13 +0200)]
Fix indentation
Magnus Hagander [Wed, 8 May 2013 20:10:51 +0000 (22:10 +0200)]
Properly purge pugs list from cache when objects are edited
Magnus Hagander [Wed, 8 May 2013 20:07:30 +0000 (22:07 +0200)]
Add usergroup listing module
Jonathan Katz
Thom Brown [Tue, 9 Apr 2013 12:53:35 +0000 (13:53 +0100)]
Update GSoC to reflect the fact that we have now been accepted for 2013.
Magnus Hagander [Mon, 8 Apr 2013 18:00:06 +0000 (20:00 +0200)]
Specify that Fedora 18 has PostgreSQL 9.2
Per Devrim
Magnus Hagander [Sun, 7 Apr 2013 19:56:39 +0000 (21:56 +0200)]
Change reference to release time to be past tense
Dave Page [Thu, 4 Apr 2013 17:22:25 +0000 (18:22 +0100)]
Update PDF sizes for 8.4.17, 9.0.13, 9.1.9 and 9.2.4.
Dave Page [Thu, 4 Apr 2013 15:30:10 +0000 (16:30 +0100)]
Include the version numbers in the release, on the FAQ.
Selena Deckelmann [Thu, 4 Apr 2013 14:02:57 +0000 (07:02 -0700)]
Wording tweak for clarity and to reduce sentence length
Dave Page [Thu, 4 Apr 2013 13:20:00 +0000 (14:20 +0100)]
PostgreSQL releases 8.4.17, 9.0.13, 9.1.9, 9.2.4.
Magnus Hagander [Wed, 3 Apr 2013 20:19:33 +0000 (22:19 +0200)]
Fix title as well, missed in previous commit
Magnus Hagander [Wed, 3 Apr 2013 16:08:40 +0000 (18:08 +0200)]
Remove release notes and download link to wrong version
When the page was changed to show the announcement instead of the latest
version, the links belonging to the old "shoutbox" was left around, pointing
to the past release.
Dave Page [Wed, 3 Apr 2013 14:35:29 +0000 (15:35 +0100)]
Update the descriptions for the installers. Remove references to
"one click".
Stephen Frost [Wed, 3 Apr 2013 14:19:40 +0000 (15:19 +0100)]
Update the callout to pre-announce the updates coming tomorrow.
Selena Deckelmann [Tue, 2 Apr 2013 21:12:58 +0000 (14:12 -0700)]
Remove mention of pgInstaller, deprecated with 8.3
Dave Page [Tue, 2 Apr 2013 08:30:12 +0000 (09:30 +0100)]
Add the date to the callout box.
Magnus Hagander [Tue, 26 Mar 2013 20:15:02 +0000 (21:15 +0100)]
Dissallow non-standard characters in username
Specifically, only allow alphabetical, numbers, _@- and period.
The website it self handles "advanced" characters just fine, but all
systems integrated through community authentication does not.
Magnus Hagander [Tue, 19 Mar 2013 15:05:53 +0000 (16:05 +0100)]
Show both start and end date for events in admin view
Makes it easier to spot those that register events for a whole year...
Thom Brown [Sun, 10 Mar 2013 00:18:51 +0000 (00:18 +0000)]
Update GSoC admins
Thom Brown [Sat, 9 Mar 2013 17:37:21 +0000 (17:37 +0000)]
Archive 2012 GSoC page and replace with new one for 2013.
Magnus Hagander [Thu, 7 Mar 2013 20:43:06 +0000 (21:43 +0100)]
Add header as required by the w3c validator these days
Magnus Hagander [Thu, 7 Mar 2013 20:42:41 +0000 (21:42 +0100)]
Simplify debian/ubuntu download instructions
Mainly by Christoph Berg, with some cleanups from me.
Thom Brown [Mon, 4 Mar 2013 18:11:09 +0000 (18:11 +0000)]
Adjust CSS on nav menu for large text layout so that wrapping doesn't result in invisible menu items.
Magnus Hagander [Sat, 23 Feb 2013 10:09:01 +0000 (11:09 +0100)]
Fix incorrect CVE number in title (link was correct)
Reported by Thomas Hart
Magnus Hagander [Tue, 12 Feb 2013 16:57:34 +0000 (17:57 +0100)]
Override some CSS classes from django-admin in the markdown previews
We don't want to use django style headlines and margins in the preview,
we want something that looks a bit more like the main site. It's not
going to be exact (e.g. the colors will still be wrong), but it will
be a lot closer than without this.
Magnus Hagander [Thu, 7 Feb 2013 12:50:38 +0000 (13:50 +0100)]
Drop windows CHM file for documentation
These files haven't been updated for years (8.3.0 and 8.4.0 respectively),
and are hard/impossible to automate the build of. And clearly not many people
are actually using them, since we've had no complaints about the versions
that are there being old.
Magnus Hagander [Thu, 7 Feb 2013 12:36:33 +0000 (13:36 +0100)]
8.3 is no longer supported, so move the documentation links to the archive
We keep them around like all other old documentation versions of course, but we
move them away from the main page.
Magnus Hagander [Thu, 7 Feb 2013 11:44:36 +0000 (12:44 +0100)]
Update size of PDF files
Magnus Hagander [Thu, 7 Feb 2013 10:33:45 +0000 (11:33 +0100)]
New minor releases
Magnus Hagander [Wed, 6 Feb 2013 14:43:29 +0000 (15:43 +0100)]
Replace references to old archives URLs with new counterparts
Magnus Hagander [Tue, 5 Feb 2013 10:32:41 +0000 (11:32 +0100)]
Remove extra comma on frontpage.
Strange that nobody noticed this before...
Magnus Hagander [Wed, 30 Jan 2013 14:21:04 +0000 (15:21 +0100)]
Events are upcoming, not current
Magnus Hagander [Wed, 30 Jan 2013 14:17:12 +0000 (15:17 +0100)]
Add language property to events
Enter the primary language for any event. In the future we will likely want
to filter events bsaed on this, but for now we just show it in the listing
and on the details page.
Requires SQL (after syncdb has run):
ALTER TABLE events_event ADD COLUMN language_id varchar(7) REFERENCES core_language(alpha3) DEFERRABLE INITIALLY DEFERRED;
Also requires loading of fixture:
./manage.py loaddata core/fixtures/language.yaml
Fixes #125
Magnus Hagander [Wed, 30 Jan 2013 14:11:10 +0000 (15:11 +0100)]
Add a Language model to core
This lists all ISO-639-2 languages, and can be used in foreign keys
from other models.
Magnus Hagander [Wed, 30 Jan 2013 13:28:16 +0000 (14:28 +0100)]
Actually implement a way to look at older events (events archive)
This also changes the main URL to look at events to be /about/events/
instead of /about/eventsarchive/, and reuses /about/eventsarchive/ to
be the actual achive. Also separates out the training archive to it's
own page at /about/eventsarchive/training/, for easier browsing.
Magnus Hagander [Wed, 30 Jan 2013 13:07:48 +0000 (14:07 +0100)]
Add checkbox for "is online" on events
This gets rid of the annoying requirement to specify things like
"online, United States" for events that are online.
This requires some SQL to run on existing installations:
ALTER TABLE events_event ADD COLUMN isonline boolean NOT NULL DEFAULT 'f';
ALTER TABLE events_event ALTER COLUMN isonline DROP DEFAULT;
ALTER TABLE events_event ALTER COLUMN country_id DROP NOT NULL;
Fixes #166
Magnus Hagander [Wed, 30 Jan 2013 13:01:25 +0000 (14:01 +0100)]
Add ability to toggle fields in forms
This uses jQuery to make it possible to enable and disable fields in the
default forms, by specifying an attribute on the form class. The form
class still has to implement proper validators, so it does not rely on
client side validations.
Magnus Hagander [Wed, 30 Jan 2013 10:45:31 +0000 (11:45 +0100)]
Allow doc comment filtering by approval status
Magnus Hagander [Wed, 30 Jan 2013 10:45:11 +0000 (11:45 +0100)]
Allow batch approval of doc comments
Magnus Hagander [Wed, 30 Jan 2013 10:41:14 +0000 (11:41 +0100)]
Make filters in admin be sticky, according to:
http://code.djangoproject.com/ticket/3777
Magnus Hagander [Tue, 15 Jan 2013 07:46:36 +0000 (08:46 +0100)]
Encode list search queries with UTF-8
Should fix exception when searching for non-ascii characters
Jonathan S. Katz [Sat, 12 Jan 2013 18:24:42 +0000 (13:24 -0500)]
Fixed typo in templates/500.html
Magnus Hagander [Sat, 12 Jan 2013 18:23:00 +0000 (19:23 +0100)]
Show a nicer error on timeout of searches
Magnus Hagander [Sat, 12 Jan 2013 18:07:36 +0000 (19:07 +0100)]
List id is not used in the template, so remove it
Since messages are no longer tied directly to lists, it makes no sense to
show which list a message belongs to.
Magnus Hagander [Sat, 12 Jan 2013 18:03:48 +0000 (19:03 +0100)]
Support redirect when we get a messageid hit in archives search
Magnus Hagander [Sat, 12 Jan 2013 17:49:00 +0000 (18:49 +0100)]
Generate search hits using new URL scheme
Magnus Hagander [Sat, 12 Jan 2013 17:41:18 +0000 (18:41 +0100)]
Don't use pylibmc behaviours, not supported in the version used in production
Magnus Hagander [Sat, 12 Jan 2013 17:11:38 +0000 (18:11 +0100)]
Attempt to set a 20 second timeout on searches
Magnus Hagander [Sat, 12 Jan 2013 16:48:09 +0000 (17:48 +0100)]
Reimplement list searching on top of http API
The new archives has a http api - use that one for searching instead
of directly talking to the database.
With the new API, we always fetch the complete search results (still
capped server-side at 1000 items), and store them locally in memcached
for 10 minutes. That way, paging will only hit the local memcached and
not the remote http api *or* the SQL api.
Magnus Hagander [Tue, 8 Jan 2013 09:22:54 +0000 (10:22 +0100)]
Organizations with >1 manager is always "new style"
Missing code branch when detecting if an event was migrated - it worked
as long as the org had a single new manager, but if it had more than
one it fell through to the same codepath.
This should fix a number of events showing as migrated even though they
were obviously much newer than that.
Dave Page [Wed, 2 Jan 2013 16:33:58 +0000 (16:33 +0000)]
Improve size of book cover.
Dave Page [Wed, 2 Jan 2013 16:16:12 +0000 (16:16 +0000)]
Correct alt text
Dave Page [Wed, 2 Jan 2013 16:14:24 +0000 (16:14 +0000)]
Add PostgreSQL Server Programming book