pgweb.git
13 years agofix minor typo...
Stefan Kaltenbrunner [Wed, 23 May 2012 20:36:47 +0000 (22:36 +0200)]
fix minor typo...

13 years agoOops - don't put the email in the name field, use the name instead
Magnus Hagander [Wed, 23 May 2012 14:05:33 +0000 (16:05 +0200)]
Oops - don't put the email in the name field, use the name instead

13 years agoAdd script to migrate a single account from the old system to the new
Magnus Hagander [Wed, 23 May 2012 14:02:18 +0000 (16:02 +0200)]
Add script to migrate a single account from the old system to the new

Required in order to be able to do password recovery on accounts, since
we only migrate users when they actually log in...

13 years agoFixes in developer install instructions and scripts
Magnus Hagander [Wed, 23 May 2012 13:26:33 +0000 (15:26 +0200)]
Fixes in developer install instructions and scripts

Per Josh Kupershmidt

13 years agoClose db connection in docloader
Magnus Hagander [Fri, 18 May 2012 14:52:47 +0000 (10:52 -0400)]
Close db connection in docloader

To make Stefan happy...

13 years agoAdd version numbers to doc titles to prevent duplicate titles between versions. ...
Thom Brown [Thu, 17 May 2012 19:49:33 +0000 (15:49 -0400)]
Add version numbers to doc titles to prevent duplicate titles between versions.  This should make results on search engines clearer and more explicit.

13 years agoSet ending copyright year always to the current year so that we no longer need to...
Thom Brown [Thu, 17 May 2012 14:46:32 +0000 (10:46 -0400)]
Set ending copyright year always to the current year so that we no longer need to maintain it.

13 years agoAdd a copyright meta tag to every page, and also a placeholder for optional meta...
Thom Brown [Thu, 17 May 2012 14:36:02 +0000 (10:36 -0400)]
Add a copyright meta tag to every page, and also a placeholder for optional meta tags. This is so we can add a description to the home page.  The reason why we don't want the same description for every page is that a general description will only be appropriate to the home landing page.

13 years agoExclude beta version docs from sitemap.xml
Magnus Hagander [Wed, 16 May 2012 17:35:35 +0000 (13:35 -0400)]
Exclude beta version docs from sitemap.xml

Currently showed up as the highest priority - oops....

Spotted by Stefan

13 years agoChange home page title to be more appropriate for a main landing page.
Thom Brown [Wed, 16 May 2012 17:31:00 +0000 (13:31 -0400)]
Change home page title to be more appropriate for a main landing page.

13 years agothe license says its "The PostgreSQL Global Development Group" and not "PostgreSQL...
Stefan Kaltenbrunner [Wed, 16 May 2012 16:41:16 +0000 (12:41 -0400)]
the license says its "The PostgreSQL Global Development Group" and not "PostgreSQL Global Development Group", probably does not matter much in practice but make the wording uniform accross the whole site

13 years agomediawiki seems to require a community_login_exists() - the existing only considers...
Stefan Kaltenbrunner [Wed, 16 May 2012 15:30:21 +0000 (11:30 -0400)]
mediawiki seems to require a community_login_exists() - the existing only considers the "new" user table, make it also look at the "old" one

13 years agoDon't include beta versions in versions.rss
Magnus Hagander [Tue, 15 May 2012 19:59:15 +0000 (15:59 -0400)]
Don't include beta versions in versions.rss

13 years agoClarify download pages for snapshots/RCs.
Dave Page [Tue, 15 May 2012 17:01:35 +0000 (13:01 -0400)]
Clarify download pages for snapshots/RCs.

13 years agoAdd link to 9.2 beta docs
Magnus Hagander [Mon, 14 May 2012 21:26:38 +0000 (17:26 -0400)]
Add link to 9.2 beta docs

13 years agoAnnounce 9.2 beta1
Devrim GUNDUZ [Mon, 14 May 2012 21:11:02 +0000 (00:11 +0300)]
Announce 9.2 beta1

13 years agoAllow the use of -1 as minor version to indicate pre-release
Magnus Hagander [Mon, 14 May 2012 21:05:14 +0000 (17:05 -0400)]
Allow the use of -1 as minor version to indicate pre-release

13 years agoInclude events that end today in the listing on the frontpage
Magnus Hagander [Thu, 10 May 2012 11:19:17 +0000 (13:19 +0200)]
Include events that end today in the listing on the frontpage

Make check "greater-than-or-equal" instead of "greater-than".

13 years agoRemove org field from event search
Magnus Hagander [Thu, 10 May 2012 11:16:06 +0000 (13:16 +0200)]
Remove org field from event search

Seems this causes errors in django...

13 years agoFix broken book images
Magnus Hagander [Thu, 19 Apr 2012 09:40:55 +0000 (11:40 +0200)]
Fix broken book images

Two images missing and an URL that failed in the migration from the
old site.

13 years agoChange GSoC page to say that PostgreSQL *is* participating.
Thom Brown [Tue, 27 Mar 2012 08:27:56 +0000 (09:27 +0100)]
Change GSoC page to say that PostgreSQL *is* participating.

13 years agoUpdated GSoC liaison list.
Thom Brown [Sun, 25 Mar 2012 21:39:57 +0000 (22:39 +0100)]
Updated GSoC liaison list.

13 years agoAdd verbose names for start and end dates
Magnus Hagander [Sun, 25 Mar 2012 19:37:55 +0000 (21:37 +0200)]
Add verbose names for start and end dates

Per report from Devrim.

13 years agoFix student application link from 2010 to 2012. Reported by Josh Berkus.
Thom Brown [Fri, 16 Mar 2012 19:59:58 +0000 (19:59 +0000)]
Fix student application link from 2010 to 2012.  Reported by Josh Berkus.

13 years agoAdd GSoC advice page.
Thom Brown [Fri, 9 Mar 2012 18:15:48 +0000 (18:15 +0000)]
Add GSoC advice page.

13 years agoClose open ul tag. Report by Selena Deckelmann.
Thom Brown [Fri, 9 Mar 2012 16:47:28 +0000 (16:47 +0000)]
Close open ul tag. Report by Selena Deckelmann.

13 years agoGSoC mentor list is now present context, so correct sentence.
Thom Brown [Fri, 9 Mar 2012 12:44:46 +0000 (12:44 +0000)]
GSoC mentor list is now present context, so correct sentence.

13 years agoAllow all staff users (= admin login users) to purge things from varnish
Magnus Hagander [Tue, 6 Mar 2012 09:51:48 +0000 (10:51 +0100)]
Allow all staff users (= admin login users) to purge things from varnish

Previously we required superuser, but that seems a bit excessive. We could
limit it based on specific groups, but for now, we'll allow all staff users.

13 years agoChanged GSoC note about a list of mentors being available.
Thom Brown [Mon, 5 Mar 2012 23:23:18 +0000 (23:23 +0000)]
Changed GSoC note about a list of mentors being available.

13 years agoUpdated GSoC page for 2012 and archived 2011 GSoC page.
Thom Brown [Mon, 5 Mar 2012 21:49:41 +0000 (21:49 +0000)]
Updated GSoC page for 2012 and archived 2011 GSoC page.

13 years agoShow previous 10 posts by an organisation when moderating news
Magnus Hagander [Fri, 2 Mar 2012 11:01:08 +0000 (12:01 +0100)]
Show previous 10 posts by an organisation when moderating news

This makes it a lot easier to see if they violate a policy or not...

13 years agoFix incorrect field for searching in the admin interface
Magnus Hagander [Fri, 2 Mar 2012 10:39:32 +0000 (11:39 +0100)]
Fix incorrect field for searching in the admin interface

This caused exceptions when searching on news articles.

13 years agoFix typo.
Thom Brown [Mon, 27 Feb 2012 12:12:15 +0000 (12:12 +0000)]
Fix typo.

13 years agoArgh, I forgot to save in my editor before I committed :O
Magnus Hagander [Mon, 27 Feb 2012 11:48:00 +0000 (12:48 +0100)]
Argh, I forgot to save in my editor before I committed :O

13 years agoUpdate for new security releases
Magnus Hagander [Mon, 27 Feb 2012 11:45:31 +0000 (12:45 +0100)]
Update for new security releases

13 years agoSecurity page updates for new releases
Magnus Hagander [Sat, 25 Feb 2012 11:50:05 +0000 (12:50 +0100)]
Security page updates for new releases

Mostly by Josh Berkus with some fixes from me

13 years agoAdd back link to openscg downloads that got lost in the migration
Magnus Hagander [Tue, 21 Feb 2012 07:59:55 +0000 (08:59 +0100)]
Add back link to openscg downloads that got lost in the migration

13 years agoRemove link to non-opensource postgres plus
Magnus Hagander [Tue, 21 Feb 2012 07:57:28 +0000 (08:57 +0100)]
Remove link to non-opensource postgres plus

Link target changed to no longer being the open source version, and
we don't list those here.

13 years agoTemporary remove listing of PWN from the website
Magnus Hagander [Mon, 13 Feb 2012 09:27:11 +0000 (10:27 +0100)]
Temporary remove listing of PWN from the website

Given that new PWNs aren't actually posted into the database, let's not
have the website pretend that they are there.

Once we're ready to post PWNs to the website again, this commit should
be reverted.

13 years agoTranslate linebreaks in docs comments
Magnus Hagander [Thu, 9 Feb 2012 10:00:25 +0000 (11:00 +0100)]
Translate linebreaks in docs comments

Turn linebreaks into BR tags instead of just leaving them letting HTML
ignore them...

Closes #131

13 years agoDon't generate http requests with two Host: headers
Magnus Hagander [Tue, 7 Feb 2012 12:05:41 +0000 (13:05 +0100)]
Don't generate http requests with two Host: headers

This would cause http 400 requests at the server, unsurprisingly.

13 years agoRemove dead code
Magnus Hagander [Tue, 7 Feb 2012 12:04:19 +0000 (13:04 +0100)]
Remove dead code

13 years agoAssign better priorities to docs pages for searching, and include older docs
Magnus Hagander [Tue, 7 Feb 2012 11:12:05 +0000 (12:12 +0100)]
Assign better priorities to docs pages for searching, and include older docs

Instead of just including supported versions, include older versions of
the docs as well, and properly assign priorities by:

* For current docs, always assign priority 1.0
* For any other docs, start at 0.8 for the latest and decrease priority
  by 0.1 for each version, until we reach 0.1.

This should restore the ability to search for old versions of the
documentation (they still get proper priorities when searching for
suburls, which currently returns no hits at all) while maintaining
a strong priority for the newer versions.

13 years agoWeigh hits based on score when given in sitemap
Magnus Hagander [Tue, 7 Feb 2012 11:02:59 +0000 (12:02 +0100)]
Weigh hits based on score when given in sitemap

In particular, this is used to prioritise hits in the documentation,
and in the current version of the documentation over older versions.

13 years agoProbably a good idea to use the same column name everywhere...
Magnus Hagander [Mon, 30 Jan 2012 09:43:47 +0000 (10:43 +0100)]
Probably a good idea to use the same column name everywhere...

13 years agoBring back the groupid in list-of-lists for search
Magnus Hagander [Mon, 30 Jan 2012 09:40:02 +0000 (10:40 +0100)]
Bring back the groupid in list-of-lists for search

Seems we were actually using this :-)

13 years agoNeed to bring back the lastcrawl table for nagios monitoring
Magnus Hagander [Sun, 29 Jan 2012 13:00:55 +0000 (14:00 +0100)]
Need to bring back the lastcrawl table for nagios monitoring

13 years agoRound off the rank score of search hits to two decimal places
Magnus Hagander [Sun, 29 Jan 2012 12:32:53 +0000 (13:32 +0100)]
Round off the rank score of search hits to two decimal places

13 years agoDon't confuse total number of pages with total number of hits
Magnus Hagander [Sun, 29 Jan 2012 12:28:33 +0000 (13:28 +0100)]
Don't confuse total number of pages with total number of hits

13 years agoForgot to qualify the suburl column in one location...
Magnus Hagander [Sun, 29 Jan 2012 12:28:21 +0000 (13:28 +0100)]
Forgot to qualify the suburl column in one location...

13 years agoDon't break on months that have exactly one message in the database before we start
Magnus Hagander [Fri, 27 Jan 2012 17:30:31 +0000 (18:30 +0100)]
Don't break on months that have exactly one message in the database before we start

13 years agoFix typo that caused exception when reporting an exception
Magnus Hagander [Fri, 27 Jan 2012 17:30:22 +0000 (18:30 +0100)]
Fix typo that caused exception when reporting an exception

13 years agoBruce's book is no longer on our site, so remove the link to it
Magnus Hagander [Fri, 27 Jan 2012 09:35:18 +0000 (10:35 +0100)]
Bruce's book is no longer on our site, so remove the link to it

13 years ago8.2 isn't supported at all anymore, so don't special-case it for Windows
Magnus Hagander [Sun, 22 Jan 2012 20:59:44 +0000 (21:59 +0100)]
8.2 isn't supported at all anymore, so don't special-case it for Windows

Noted by Guillaume Lelarge

13 years agoUpdate message counts when finished crawling lists
Magnus Hagander [Sun, 22 Jan 2012 20:58:03 +0000 (21:58 +0100)]
Update message counts when finished crawling lists

13 years agoMake it possible to crawl more than one list at a time, without doing all
Magnus Hagander [Sun, 22 Jan 2012 11:06:32 +0000 (12:06 +0100)]
Make it possible to crawl more than one list at a time, without doing all

13 years agoNew set of web search crawlers and infrastructure
Magnus Hagander [Sat, 14 Jan 2012 17:57:48 +0000 (18:57 +0100)]
New set of web search crawlers and infrastructure

Replaces the old search code with something that's not quite as much
spaghetti (e.g. not evolved over too much time), and more stable (actual
error handling instead of random crashes)

Crawlers are now also multithreaded to deal with higher latency to some
sites.

13 years agoExport list information as json
Magnus Hagander [Sun, 15 Jan 2012 15:19:48 +0000 (16:19 +0100)]
Export list information as json

This makes it easier to sync information about which lists we have,
and how they are grouped, to external sites (such as the search crawler)

13 years agoAdd help texts refering to the organisation list on forms that take an organisation...
Magnus Hagander [Fri, 20 Jan 2012 14:13:45 +0000 (15:13 +0100)]
Add help texts refering to the organisation list on forms that take an organisation field

For those who don't read the introduction page under my account, per request
from Dave.

13 years agoAllow the use of HTML in form field help texts
Magnus Hagander [Fri, 20 Jan 2012 12:45:40 +0000 (13:45 +0100)]
Allow the use of HTML in form field help texts

Also make the help text show under the field itself for regular fields,
and in the left column only for textarea fields. This makes it possible
to use longer help texts without making things look really bad...

13 years agoStop emphasising elements with a 'c4' class as it only affects elements which shouldn...
Thom Brown [Fri, 20 Jan 2012 11:43:10 +0000 (11:43 +0000)]
Stop emphasising elements with a 'c4' class as it only affects elements which shouldn't be bold.

13 years agoRemove link to pugs site which doesn't exist
Magnus Hagander [Wed, 18 Jan 2012 08:43:25 +0000 (09:43 +0100)]
Remove link to pugs site which doesn't exist

Should probably be reinstated once the planned wiki page exists

13 years agoAnother round of markup fixes
Magnus Hagander [Sun, 15 Jan 2012 19:30:50 +0000 (20:30 +0100)]
Another round of markup fixes

13 years agoFix boken tag
Magnus Hagander [Sun, 15 Jan 2012 19:04:27 +0000 (20:04 +0100)]
Fix boken tag

13 years agoExclude precompiled python files
Magnus Hagander [Sat, 14 Jan 2012 17:58:30 +0000 (18:58 +0100)]
Exclude precompiled python files

13 years agoInclude support/versioning in search results again!
Magnus Hagander [Sat, 14 Jan 2012 16:20:45 +0000 (17:20 +0100)]
Include support/versioning in search results again!

13 years agoInclude last modified date in sitemap
Magnus Hagander [Sat, 14 Jan 2012 15:55:53 +0000 (16:55 +0100)]
Include last modified date in sitemap

13 years agoCan't leave an empty struct, need to actually remove it completely
Magnus Hagander [Sat, 14 Jan 2012 15:08:14 +0000 (16:08 +0100)]
Can't leave an empty struct, need to actually remove it completely

13 years agoThis URL doesn't actually exist...
Magnus Hagander [Sat, 14 Jan 2012 11:41:29 +0000 (12:41 +0100)]
This URL doesn't actually exist...

13 years agoEnsure that names are utf-8 encoded in community auth
Magnus Hagander [Fri, 13 Jan 2012 08:56:32 +0000 (09:56 +0100)]
Ensure that names are utf-8 encoded in community auth

If the name contains non-ascii characters, we could get an exception
when trying to urlencodethe resulting structure.

13 years agoPurge supported version list from frontends when changina version object
Magnus Hagander [Sat, 7 Jan 2012 12:46:59 +0000 (13:46 +0100)]
Purge supported version list from frontends when changina version object

13 years agoRender list of supported versions on the main page
Magnus Hagander [Sat, 7 Jan 2012 12:09:20 +0000 (13:09 +0100)]
Render list of supported versions on the main page

Now that we have more metadata, we can render this on the main page instead of
on the wiki. This commit copies all the text from the current wiki page, and
uses the new fields in the Version model to render the table on the same URL
as the reference was on before.

13 years agoAdd two fields to the version model, for tracking release dates
Magnus Hagander [Sat, 7 Jan 2012 11:59:16 +0000 (12:59 +0100)]
Add two fields to the version model, for tracking release dates

This requires the following to be run on all developer installations:

alter table core_version add column "firstreldate" date NOT NULL default current_date;
alter table core_version add column "eoldate" date NOT NULL default current_date;
alter table core_version alter column "firstreldate" drop default;
alter table core_version alter column "eoldate" drop default;

13 years agoAdd new frontend server to the pgq config.
Dave Page [Fri, 6 Jan 2012 10:39:04 +0000 (10:39 +0000)]
Add new frontend server to the pgq config.

13 years agoUpdate copyright year.
Dave Page [Thu, 5 Jan 2012 13:46:39 +0000 (13:46 +0000)]
Update copyright year.

13 years agoOops, missed about half of the last commit.
Magnus Hagander [Mon, 2 Jan 2012 16:48:11 +0000 (17:48 +0100)]
Oops, missed about half of the last commit.

Luckily, I got all the new files, but not the code changes, so
nothing actually broke in between...

13 years agoMake it possible to edit firstname and lastname fields on users
Magnus Hagander [Mon, 2 Jan 2012 16:44:55 +0000 (17:44 +0100)]
Make it possible to edit firstname and lastname fields on users

Also, make the community authentication process require that both these
fields (along with email) are set, and direct the user to set them if
not. This is so that community authenticated sites can always rely on
there being a complete profile.

13 years agoAdd sample login.html for django admin logins
Magnus Hagander [Wed, 28 Dec 2011 13:59:59 +0000 (14:59 +0100)]
Add sample login.html for django admin logins

13 years agoFix typo.
Thom Brown [Tue, 27 Dec 2011 18:39:41 +0000 (18:39 +0000)]
Fix typo.

13 years agoImplement single sign-out for community login 2.0
Magnus Hagander [Tue, 27 Dec 2011 18:35:51 +0000 (19:35 +0100)]
Implement single sign-out for community login 2.0

In order to provide a consistent user experience, we must sign the
user out from the main website if the community site provides a logout
button - else that button will appear not to work...

13 years agoAdd hint about how to create a key
Magnus Hagander [Thu, 22 Dec 2011 18:19:54 +0000 (19:19 +0100)]
Add hint about how to create a key

13 years agoAdd comment field to community sites, never hurts...
Magnus Hagander [Thu, 22 Dec 2011 18:18:17 +0000 (19:18 +0100)]
Add comment field to community sites, never hurts...

13 years agoAdd sample perl code to decrypt authentication tokens
Magnus Hagander [Wed, 21 Dec 2011 14:48:55 +0000 (15:48 +0100)]
Add sample perl code to decrypt authentication tokens

Code from Claes Jakobsson

13 years agoAdd sample django community authentication consumer
Magnus Hagander [Wed, 21 Dec 2011 14:48:42 +0000 (15:48 +0100)]
Add sample django community authentication consumer

13 years agoInclude a timestamp in the authentication token
Magnus Hagander [Tue, 20 Dec 2011 11:52:32 +0000 (12:52 +0100)]
Include a timestamp in the authentication token

This way we can expire a token after e.g. 10 or 30 seconds, making
it impossible to do a replay attack later.

13 years agoAdd a special login form for the community auth logins
Magnus Hagander [Mon, 19 Dec 2011 17:08:13 +0000 (18:08 +0100)]
Add a special login form for the community auth logins

This form will inform about the auth system, and also which site is
trying to perform the login - just to make it extra clear that this
login is from the outside.

13 years agoImplement community authentication 2.0
Magnus Hagander [Sun, 18 Dec 2011 15:55:39 +0000 (16:55 +0100)]
Implement community authentication 2.0

This system relies on http redirects and signing in to the main website
instead of using cross-internet pgsql connections and signing in individually
to each website.

13 years agoAdd a simple crash testing URL
Magnus Hagander [Thu, 22 Dec 2011 11:34:44 +0000 (12:34 +0100)]
Add a simple crash testing URL

It requires the file /tmp/crashtest to exist to actually test the crash,
without that it just renders a plaintext string...

13 years agoSend notification emails on deletes
Magnus Hagander [Tue, 20 Dec 2011 12:55:33 +0000 (13:55 +0100)]
Send notification emails on deletes

There are no signals for them, but it appears to work to just override
the delete() method in PgModel.

Fixes #121

13 years agoUsernames must be checked case insensitively
Dave Page [Tue, 20 Dec 2011 11:32:07 +0000 (11:32 +0000)]
Usernames must be checked case insensitively

13 years agoPurge server list when updating sponsors
Magnus Hagander [Mon, 19 Dec 2011 18:36:19 +0000 (19:36 +0100)]
Purge server list when updating sponsors

We have sponsor name and URL in the server list as well....

13 years agoDo a sleep before reloading the website, to avoid interfering with automirror
Magnus Hagander [Sun, 18 Dec 2011 16:05:09 +0000 (17:05 +0100)]
Do a sleep before reloading the website, to avoid interfering with automirror

This should hopefully get rid of transient errors caused by automirror hitting
the site during reload, before our script has a change to pull the local site.

13 years agoWe have released now, the plan is no longer summer 2010
Magnus Hagander [Sun, 18 Dec 2011 15:30:35 +0000 (16:30 +0100)]
We have released now, the plan is no longer summer 2010

(Granted, we missed that deadline by over a year, but at least we are live now)

13 years agoAdd org, date and approved columns to news view, along with approved filter and remov...
Thom Brown [Sun, 18 Dec 2011 13:55:56 +0000 (13:55 +0000)]
Add org, date and approved columns to news view, along with approved filter and remove redundant register_markdown imports.

13 years agoStops sending M2M updates from PgModel objects upon every single update
Jonathan S. Katz [Sat, 17 Dec 2011 23:29:13 +0000 (18:29 -0500)]
Stops sending M2M updates from PgModel objects upon every single update

Prevents changes from M2M updates from appearing after every single
save to a PgModel derived class. The unfortunate side effect is that
no M2M updates will appear, but this has to do with the context in how
the diff between two objects it taking place.  An expanded note appears in
the explanation to #110

Fixes #110

13 years agoMake our session cookie secure by default, and locked to www.postgresql.org
Magnus Hagander [Sat, 17 Dec 2011 18:39:36 +0000 (19:39 +0100)]
Make our session cookie secure by default, and locked to postgresql.org

This increases session security, obviously... It will also break local development
installs, which will have to add the two rows that this patch adds to the
documentation.

13 years agoRemove some really ugly forgotten debugging code...
Magnus Hagander [Sat, 17 Dec 2011 16:47:22 +0000 (17:47 +0100)]
Remove some really ugly forgotten debugging code...

13 years agoProperly redirect after login
Magnus Hagander [Sat, 17 Dec 2011 14:01:40 +0000 (15:01 +0100)]
Properly redirect after login

Since the "next" field was missing, any login always redirected to the
default account page, even though it came with a "next" parameter that
would allow it to go to the correct place.

13 years agoRemove leading and trailing paragraph HTML tags from bug header as the calling templa...
Thom Brown [Thu, 15 Dec 2011 21:19:15 +0000 (21:19 +0000)]
Remove leading and trailing paragraph HTML tags from bug header as the calling template surrounds it with these tags anyway.

13 years agoAvoid crashing the frontpage when there are zero quotes
Magnus Hagander [Thu, 15 Dec 2011 21:14:07 +0000 (22:14 +0100)]
Avoid crashing the frontpage when there are zero quotes

This won't happen in production since we don't delete quotes, but it
happens on empty dev environments. It still renders a pretty ugly
frontpage, but it doesn't crash...