|
@@ -1058,7 +1058,7 @@ def link_role_entity(request): |
|
|
@notfound_view_config() |
|
|
@notfound_view_config() |
|
|
def notfound(reason, request): |
|
|
def notfound(reason, request): |
|
|
request.response.status = 404 |
|
|
request.response.status = 404 |
|
|
return render_to_response('jm2l:templates/Errors/404.mak', { "reason":reason }, |
|
|
|
|
|
|
|
|
return render_to_response('jm2l:templates/Errors/404.mako', { "reason":reason }, |
|
|
request=request) |
|
|
request=request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1066,5 +1066,5 @@ def notfound(reason, request): |
|
|
def forbidden(reason, request): |
|
|
def forbidden(reason, request): |
|
|
#return Response('forbidden') |
|
|
#return Response('forbidden') |
|
|
request.response.status = 404 |
|
|
request.response.status = 404 |
|
|
return render_to_response('jm2l:templates/Errors/404.mak', { "reason":reason }, |
|
|
|
|
|
request=request) |
|
|
|
|
|
|
|
|
return render_to_response('jm2l:templates/Errors/404.mako', { "reason":reason }, |
|
|
|
|
|
request=request) |