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
7ed69d8a
Commit
7ed69d8a
authored
Jul 27, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- don't raise string exceptions
parent
d6376fb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/OFS/userfolder.py
src/OFS/userfolder.py
+2
-2
src/Products/SiteErrorLog/SiteErrorLog.py
src/Products/SiteErrorLog/SiteErrorLog.py
+2
-2
No files found.
src/OFS/userfolder.py
View file @
7ed69d8a
...
...
@@ -288,10 +288,10 @@ class BasicUserFolder(Navigation, Tabs, Item, 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'
)
)
class
UserFolder
(
accesscontrol_userfolder
.
UserFolder
,
BasicUserFolder
):
...
...
src/Products/SiteErrorLog/SiteErrorLog.py
View file @
7ed69d8a
...
...
@@ -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