##// END OF EJS Templates
http-app: added default not_found view.
marcink -
r151:0f43430b default
parent child Browse files
Show More
@@ -203,6 +203,11 b' class HTTPApplication(object):'
203
203
204 self.config.add_view(self.hg_stream(), route_name='stream_hg')
204 self.config.add_view(self.hg_stream(), route_name='stream_hg')
205 self.config.add_view(self.git_stream(), route_name='stream_git')
205 self.config.add_view(self.git_stream(), route_name='stream_git')
206
207 def notfound(request):
208 return {'status': '404 NOT FOUND'}
209 self.config.add_notfound_view(notfound, renderer='json')
210
206 self.config.add_view(
211 self.config.add_view(
207 self.handle_vcs_exception, context=Exception,
212 self.handle_vcs_exception, context=Exception,
208 custom_predicates=[self.is_vcs_exception])
213 custom_predicates=[self.is_vcs_exception])
General Comments 0
You need to be logged in to leave comments. Login now