Commit c5e03a8b authored by Amos Latteier's avatar Amos Latteier

Changed __bobo_traverse__ to call the Response's notFoundError, instead of...

Changed __bobo_traverse__ to call the Response's notFoundError, instead of raising a NotFound. This allows the Application to use the Response's standard error template.
parent 0b448687
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.99 1999/04/08 14:04:54 brian Exp $''' $Id: Application.py,v 1.100 1999/04/23 00:56:10 amos Exp $'''
__version__='$Revision: 1.99 $'[11:-2] __version__='$Revision: 1.100 $'[11:-2]
import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry, misc_
...@@ -238,9 +238,7 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder, ...@@ -238,9 +238,7 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder,
method=REQUEST.get('REQUEST_METHOD', 'GET') method=REQUEST.get('REQUEST_METHOD', 'GET')
if not method in ('GET', 'POST'): if not method in ('GET', 'POST'):
return NullResource(self, name, REQUEST).__of__(self) return NullResource(self, name, REQUEST).__of__(self)
raise 'NotFound',( REQUEST.RESPONSE.notFoundError("%s\n%s" % (name, method))
"Sorry, the requested document does not exist.<p>"
"\n<!--\n%s\n%s\n-->" % (name, method))
def PrincipiaTime(self, *args): def PrincipiaTime(self, *args):
"""Utility function to return current date/time""" """Utility function to return current date/time"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment