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
e8fcc0e5
Commit
e8fcc0e5
authored
Jul 02, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the id when a BadRequestException is raised that complains about
the id.
parent
384c15ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+3
-3
No files found.
lib/python/OFS/ObjectManager.py
View file @
e8fcc0e5
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
##############################################################################
##############################################################################
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.15
3 2002/06/12 18:17:46 shane
Exp $"""
$Id: ObjectManager.py,v 1.15
4 2002/07/02 21:00:00 chrism
Exp $"""
__version__
=
'$Revision: 1.15
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.15
4
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
re
,
Products
import
os
,
App
.
FactoryDispatcher
,
re
,
Products
...
@@ -52,7 +52,7 @@ def checkValidId(self, id, allow_dup=0):
...
@@ -52,7 +52,7 @@ def checkValidId(self, id, allow_dup=0):
# set to false before the object is added.
# set to false before the object is added.
if
not
id
or
(
type
(
id
)
!=
type
(
''
)):
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
:
if
bad_id
(
id
)
is
not
None
:
raise
BadRequestException
,
(
raise
BadRequestException
,
(
'The id "%s" contains characters illegal in URLs.'
%
id
)
'The id "%s" contains characters illegal in URLs.'
%
id
)
...
...
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