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
This commit is contained in:
Magnus Hagander
2013-08-17 17:28:36 +02:00
parent 8e458731cb
commit fdd1404f37
7 changed files with 69 additions and 229 deletions

View File

@ -143,6 +143,7 @@ SESSION_COOKIE_SECURE=True # Allow our session only
SESSION_COOKIE_DOMAIN="www.postgresql.org" # Don't allow access by other postgresql.org sites
SITE_ROOT="http://www.postgresql.org" # Root of working URLs
FTP_PICKLE="/usr/local/pgweb/ftpsite.pickle" # Location of file with current contents from ftp site
STATIC_CHECKOUT="/usr/local/pgweb-static" # Location of a checked out pgweb-static project
NOTIFICATION_EMAIL="someone@example.com" # Address to send notifications *to*
NOTIFICATION_FROM="someone@example.com" # Address to send notifications *from*
LISTSERVER_EMAIL="someone@example.com" # Address to majordomo