--- a/lib/map.py Sat Feb 07 17:10:06 2009 +0200
+++ b/lib/map.py Sat Feb 07 17:14:01 2009 +0200
@@ -5,13 +5,13 @@
import http
import handler
-class MappingError (http.ResponseError) :
+class MapperError (http.ResponseError) :
"""
URL could not be mapped
"""
def __init__ (self, url) :
- super(MappingError, self).__init__("URL not found: %s" % (url, ), status='404 Not Found')
+ super(MapperError, self).__init__("URL not found: %s" % (url, ), status='404 Not Found')
class Mapper (handler.RequestHandler) :
"""
@@ -59,7 +59,7 @@
def test (self, request) :
xxx
-class StaticMapping (Mapper) :
+class StaticMapper (Mapper) :
"""
Translates requests to handlers using a list of pre-determined Mapping's
"""
@@ -85,7 +85,7 @@
if not handler :
# fail, not found
- raise MappingError(request.get_page_name())
+ raise MapperError(request.get_page_name())
# passthrough
return handler.handle_request(request)