Commit 3ee88cbf authored by Casey Duncan's avatar Casey Duncan

Added an argument to pass error_log_url into raise_standardErrorMessage since...

Added an argument to pass error_log_url into raise_standardErrorMessage since logging is now done above it.
parent 98d3e112
......@@ -17,8 +17,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.104 2002/08/30 19:17:07 caseman Exp $'''
__version__='$Revision: 1.104 $'[11:-2]
$Id: SimpleItem.py,v 1.105 2002/08/30 20:21:29 caseman Exp $'''
__version__='$Revision: 1.105 $'[11:-2]
import re, sys, Globals, App.Management, Acquisition, App.Undo
import AccessControl.Role, AccessControl.Owned, App.Common
......@@ -142,7 +142,8 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
self, client=None, REQUEST={},
error_type=None, error_value=None, tb=None,
error_tb=None, error_message='',
tagSearch=re.compile(r'[a-zA-Z]>').search):
tagSearch=re.compile(r'[a-zA-Z]>').search,
error_log_url=''):
try:
if error_type is None: error_type =sys.exc_info()[0]
......
......@@ -167,8 +167,11 @@ def zpublisher_exception_hook(
if REQUEST.get('AUTHENTICATED_USER', None) is None:
REQUEST['AUTHENTICATED_USER']=AccessControl.User.nobody
f(client, REQUEST, t, v, traceback)
try:
f(client, REQUEST, t, v, traceback, error_log_url=error_log_url)
except TypeError:
# Pre 2.6 call signature
f(client, REQUEST, t, v, traceback)
finally: traceback=None
......
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