Commit Graph

26 Commits

Author SHA1 Message Date
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