Commit Graph

42 Commits

Author SHA1 Message Date
33ed40343b Add support for varnish purging based on expressions
Previously we would only purge based on URLs, but some of the upcoming
new work requires arbitrary expression purging.

NOTE! Require the creation of the new SQL procecure in the database,
either from varnish.sql or varnish_local.sql depending on if it's prod
or dev.
2012-10-03 12:48:47 +02:00
1678c93db6 Oops, missed a number of references to publisher :O 2012-06-26 14:59:35 +02:00
de108bfa7c Allow the use of -1 as minor version to indicate pre-release 2012-05-14 17:05:14 -04:00
c2d330939f Include events that end today in the listing on the frontpage
Make check "greater-than-or-equal" instead of "greater-than".
2012-05-10 13:19:17 +02:00
3442fdde57 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.
2012-03-06 10:53:10 +01:00
78ab264578 Include last modified date in sitemap 2012-01-14 16:55:53 +01:00
08b9ac643f 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.
2012-01-07 13:09:20 +01:00
8042d5a8bc 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...
2011-12-15 22:14:07 +01:00
f07c0db120 Include list of 20 latest purges in the varnish purging page (in /admin)
It's a way to keep track of what the system is doing, I guess...
2011-12-04 14:54:59 +01:00
3523989223 Pending page should require staff access, not superuser 2011-12-03 16:49:16 +01:00
e712f987ac Ensure that files we look for in the filesystem are ASCII filenames
We don't have any utf8 or latin1 in the filenames at this point, and
there's no reason to start adding it....

Fixes #111
2011-11-28 18:55:21 +01:00
74d8bdd647 Make account editing forms redirect back to list of objects
Instead of like previously, redirect back to the list of object
types.
2011-11-09 22:16:13 +01:00
afa81021b3 Make it possible to add and remove managers from an organisation
(from the general interface, not just from /admin/)
2011-11-09 22:16:12 +01:00
9e710e5456 For multilanguage pages, use english as default language
So we search both for <url>.html, and <url>/en.html. This is consistent
with how we access non-english languages.
2011-11-08 14:40:42 +01:00
1ab63a3d51 Ensure we always set Content-Length when getting the web_sync_timestamp
This is required by our own automirror scripts...
2011-11-07 16:04:47 +01:00
7874abc24d Add a sync_timestamp URL to point automirror at 2011-11-05 18:51:10 +01:00
961359bdab Validate superuser on "hidden" admin views 2011-08-18 10:46:36 +02:00
248d940c7e Implement proper mergeing of organisations 2011-08-18 10:46:25 +02:00
4ac854a2b0 Only include supported versions on the frontpage 2011-07-12 14:50:23 +01:00
09eb4f1d40 Properly quote URLs in the sitemap 2011-07-12 14:14:18 +01:00
121b336792 Remove print statement that cannot be used when running under a server 2011-06-14 19:51:00 +02:00
f92709d2a6 Implement basic varnish purging
This allows all models inherited from PgModel to specify which
URLs to purge by either setting a field or defining a function
called purge_urls, at which point they will be purged whenever
the save signal is fired.

Also implements a form under /admin/purge/ that allows for manual
purging. This should probably be extended in the future to show
the status of the pgq slaves, but that will come later.

Includes a SQL function that posts the expires to a pgq queue. For
a local deployment, this can be replaced with a simple void function
to turn off varnish purging.
2011-06-14 19:48:48 +02:00
22f5578c29 Add support for generating sitemap.
Each module now contains a struct.py file that will return all
the URLs that it can generate (yes, this is a small break of the
abstraction of url.py, but we've broken that elsewhere as well),
and also which search-engine-weight (0.1-1.0) that this URL should
be given.
2010-09-28 16:12:13 +02:00
3edfaf90ef Don't error out if there are no approved quotes avaliable 2010-07-15 22:40:21 +02:00
f0e33b3718 Return a robots.txt file 2010-06-18 11:01:43 +02:00
6c1c4213d5 Change sysinfo cache to 30 seconds - it will show the wrong persons IP address
otherwise, of course :-)
2010-06-17 14:21:47 +02:00
4ef10d51c1 Typo patrol 2010-06-17 14:16:47 +02:00
03892a5c41 Ensure that the system information view is only cached for 2 minutes 2010-06-17 14:15:27 +02:00
12cdc90e3e Implement is_behind_cache() and get_client_ip() functions to handle
the fact that when pages are served through Varnish, the request will come
from the Varnish server and not from the client.

Create a /system_information page that shows some information about the
connection to help diagnose how the caches work.
2010-06-17 14:11:50 +02:00
047982b81d Refactor the list of objects needing moderation into utils/moderation.py,
and create a script to use this to generate a moderation report email.
2010-06-13 15:11:53 +02:00
509e328d1d Re-fix event sorting, we're supposed to sort by *end* date... 2010-06-10 19:08:30 +02:00
f95fccc836 Fix sorting of events 2010-06-10 19:04:58 +02:00
24d2ca6bee Missing include! 2010-06-09 16:52:01 +02:00
7d5e50005b Control the caching of the frontpage to 10 minutes 2010-06-09 16:50:54 +02:00
4ca5d45536 Add page with list of all pending moderation requests, and link it
(somewhat hackishly) onto the header of the administration pages.
2010-03-21 18:25:00 +01:00
d2d359776b Make it possible to add new organisations again - they need to be tagged
with the logged in user as the first manager, or they become orphans before
they're even created...
2010-02-26 12:53:26 +01:00
0d55002019 Make each event have an organisation that's not just a free-text field,
for future ability to have multiple people manage a single event.
2010-02-25 16:46:36 +01:00
f1fd62c0c8 Clean up events handling - clearly it wasn't even remotely ready. 2010-01-14 21:38:10 +01:00
fcc9e08e95 Add simple RSS parser, currently only does planet. Use this for the
planet list on the frontpage and the community page.
2009-12-28 19:21:32 +01:00
2f671fe3d6 Add support for surveys 2009-12-28 16:12:44 +01:00
f216b00037 Implement software catalogue. Break the organisation object out as
part of the core, since it seems like it could be useful for other
kinds of objects as well in the future, but for now only the
software catalogue uses it.
2009-12-28 14:22:17 +01:00
90b758c247 A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.

There is still plenty more to do...
2009-09-14 14:39:25 +02:00