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
33e38deb
Commit
33e38deb
authored
Jan 17, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallowed names that start with "aq_".
parent
5614d661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+4
-2
No files found.
lib/python/OFS/ObjectManager.py
View file @
33e38deb
...
...
@@ -84,9 +84,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.12
3 2001/01/17 18:40:27
shane Exp $"""
$Id: ObjectManager.py,v 1.12
4 2001/01/17 19:17:05
shane Exp $"""
__version__
=
'$Revision: 1.12
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.12
4
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
ts_regex
,
Products
...
...
@@ -129,6 +129,8 @@ def checkValidId(self, id, allow_dup=0):
'The id "%s" contains characters illegal in URLs.'
%
id
)
if
id
[
0
]
==
'_'
:
raise
'Bad Request'
,
(
'The id "%s" is invalid - it begins with an underscore.'
%
id
)
if
id
[:
3
]
==
'aq_'
:
raise
'Bad Request'
,
(
'The id "%s" is invalid - it begins with "aq_".'
%
id
)
if
id
[
-
2
:]
==
'__'
:
raise
'Bad Request'
,
(
'The id "%s" is invalid - it ends with two underscores.'
%
id
)
if
not
allow_dup
:
...
...
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