Sebastian Spaeth 785b287fcb Provide tools.response.render_http_exception and use that
After the webob->werkzeug transition, controller functions can raise
werkzeug.HttpExceptions. We need to catch these in app.py when calling
the controller and handle them, rendering the corresponding error Response()
object. For consistency, we also want to allow meddleware functions to
raise HttpExceptions (e.g. the csrf meddleware needs to complain about lack
of cookies), so wrap the request and response parts of the meddleware too.

Finally, the urlmap.match() can also raise HttpExceptions, so we give it the
same treatment (render_http_exception). I am not sure, if we do not need to
handle the Redirect exception there in any different way though...

The new function render_http_exception makes use of the render_error infrastructure
to return a nicely templated error page. It also checks if the stock error
messages was used in cases where we have localizations (403, 404) and use those.

It is now possible to do things like "raise Forbidden(_('You suckr'))" or
raise NotFound(_('where is my left show again')) if you want to return
customized error messages to the user.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-12-23 11:57:45 +01:00
2012-07-07 21:18:27 +02:00
2012-12-22 12:05:03 +01:00
2012-12-03 14:57:52 -06:00
2011-03-28 10:28:10 -04:00
2012-12-03 13:53:32 +01:00
2012-11-26 11:57:33 -06:00
2011-12-12 09:53:41 -05:00
2012-12-21 08:24:28 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

========
 README
========

What is GNU MediaGoblin?
========================

* Initially, a place to store all your photos thats as awesome as, if
  not more awesome than, existing network services (Flickr, SmugMug,
  Picasa, etc)
* Customizable!
* A place for people to collaborate and show off original and derived
  creations.  Free, as in freedom.  Were a GNU project after all.
* Later, a place for all sorts of media, such as video, music, etc hosting.
* Later, federated with OStatus!


Is it ready for me to use?
==========================

Yes!  But with caveats.  The software is usable and there are instances
running, but it's still in its early stages.


Can I help/hang out/participate/whisper sweet nothings in your ear?
===================================================================

Yes!  Please join us and hang out!  For more information on where we
hang out, see `our Join page <http://mediagoblin.org/join/>`_


Where is the documentation?
===========================

The beginnings of a site administration manual is located in the ``docs/``
directory in HTML, Texinfo, and source (Restructured Text) forms.  It's
also available online at http://docs.mediagoblin.org/ in HTML form.

Contributor/developer documentation as well as documentation on the
project processes and infrastructure is located on 
`the wiki <http://wiki.mediagoblin.org/>`_.
Description
Testing
Readme 45 MiB
Languages
JavaScript 43.9%
Python 43.2%
HTML 9.1%
CSS 1.4%
Shell 0.9%
Other 1.5%