[Zope-Checkins] CVS: Zope/lib/python/OFS - SimpleItem.py:1.101
Casey Duncan
casey@zope.com
Tue, 25 Jun 2002 16:52:57 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv21847/lib/python/OFS
Modified Files:
SimpleItem.py
Log Message:
Added ability for site error log to return the url to the log entry and pass it to the standard_error_message to make a link from it.
=== Zope/lib/python/OFS/SimpleItem.py 1.100 => 1.101 ===
log = aq_acquire(self, '__error_log__', containment=1)
except AttributeError:
- pass
+ error_log_url = ''
else:
- log.raising((error_type, error_value, tb))
+ error_log_url = log.raising((error_type, error_value, tb))
# turn error_type into a string
if hasattr(error_type, '__name__'):
@@ -200,7 +200,8 @@
'error_value': error_value,
'error_tb': error_tb,
'error_traceback': error_tb,
- 'error_message': error_message}
+ 'error_message': error_message,
+ 'error_log_url': error_log_url}
if isinstance(s, HTML):
v = s(client, REQUEST, **kwargs)