# -*- coding: iso8859-1 -*- # # Copyright (C) 2006 CSIRO Australia # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of voluntary contributions made by many # individuals. For exact contribution history, see the revision # history and logs. # # Author: Conrad Parker from urllib import quote_plus class W3CRedirect (object): def __init__(self, uri): self.uri = uri def __str__(self): quoted_uri = quote_plus (self.uri) return '''

The Content-Type of the requested resource is not supported by this service. Supported content types are listed here.

If the reported content type is correct, you may wish to try using the W3C Markup Validation Service.

Otherwise, an incorrect content type usually indicates a web server misconfiguration. If this is the case, please reconfigure your web server to report the correct content type for this resource.

Force validation as media

''' % (quoted_uri, quoted_uri)