Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c37bf7e8
Commit
c37bf7e8
authored
Jul 27, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- don't raise string exceptions
parent
67540f98
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
doc/CHANGES.rst
doc/CHANGES.rst
+1
-0
src/AccessControl/User.py
src/AccessControl/User.py
+2
-2
src/Products/SiteErrorLog/SiteErrorLog.py
src/Products/SiteErrorLog/SiteErrorLog.py
+2
-2
No files found.
doc/CHANGES.rst
View file @
c37bf7e8
...
...
@@ -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)
--------------------
...
...
src/AccessControl/User.py
View file @
c37bf7e8
...
...
@@ -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
...
...
src/Products/SiteErrorLog/SiteErrorLog.py
View file @
c37bf7e8
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment