[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.154
Chris McDonough
chrism@zope.com
Tue, 2 Jul 2002 17:00:01 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv27748
Modified Files:
ObjectManager.py
Log Message:
Show the id when a BadRequestException is raised that complains about
the id.
=== Zope/lib/python/OFS/ObjectManager.py 1.153 => 1.154 ===
if not id or (type(id) != type('')):
- raise BadRequestException, 'Empty or invalid id specified.'
+ raise BadRequestException, ('Empty or invalid id specified', id)
if bad_id(id) is not None:
raise BadRequestException, (
'The id "%s" contains characters illegal in URLs.' % id)