Commit c37bf7e8 authored by 's avatar

- don't raise string exceptions

parent 67540f98
......@@ -11,6 +11,7 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- BasicUserFolder and SiteErrorLog: Don't raise string exceptions.
2.12.10 (2010-07-20)
--------------------
......
......@@ -1003,10 +1003,10 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
def _setId(self, id):
if id != self.id:
raise MessageDialog(
raise ValueError(MessageDialog(
title='Invalid Id',
message='Cannot change the id of a UserFolder',
action ='./manage_main',)
action='./manage_main'))
# Domain authentication support. This is a good candidate to
......
......@@ -103,10 +103,10 @@ class SiteErrorLog (SimpleItem):
def _setId(self, id):
if id != self.id:
raise MessageDialog(
raise ValueError(MessageDialog(
title='Invalid Id',
message='Cannot change the id of a SiteErrorLog',
action ='./manage_main',)
action='./manage_main'))
def _getLog(self):
"""Returns the log for this object.
......
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