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
a88ce090
Commit
a88ce090
authored
Mar 15, 2006
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted r65904:
- I still believe this was the Right Thing to do, but not everybody agrees
parent
a8b7b184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+0
-3
lib/python/OFS/tests/testObjectManager.py
lib/python/OFS/tests/testObjectManager.py
+0
-2
No files found.
lib/python/OFS/ObjectManager.py
View file @
a88ce090
...
@@ -89,9 +89,6 @@ def checkValidId(self, id, allow_dup=0):
...
@@ -89,9 +89,6 @@ def checkValidId(self, id, allow_dup=0):
'The id "%s" is invalid because it begins with "aq_".'
%
id
)
'The id "%s" is invalid because it begins with "aq_".'
%
id
)
if
id
.
endswith
(
'__'
):
raise
BadRequest
,
(
if
id
.
endswith
(
'__'
):
raise
BadRequest
,
(
'The id "%s" is invalid because it ends with two underscores.'
%
id
)
'The id "%s" is invalid because it ends with two underscores.'
%
id
)
if
id
[
0
]
==
'@'
:
raise
BadRequest
(
'The id "%s" is invalid because it begins with '
'"@".'
%
id
)
if
not
allow_dup
:
if
not
allow_dup
:
obj
=
getattr
(
self
,
id
,
None
)
obj
=
getattr
(
self
,
id
,
None
)
if
obj
is
not
None
:
if
obj
is
not
None
:
...
...
lib/python/OFS/tests/testObjectManager.py
View file @
a88ce090
...
@@ -378,7 +378,6 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
...
@@ -378,7 +378,6 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'111'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'111'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'REQUEST'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'REQUEST'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'/'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'/'
,
si
)
self
.
assertRaises
(
BadRequest
,
om
.
_setObject
,
'@@view'
,
si
)
def
test_list_imports
(
self
):
def
test_list_imports
(
self
):
om
=
self
.
_makeOne
()
om
=
self
.
_makeOne
()
...
@@ -390,7 +389,6 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
...
@@ -390,7 +389,6 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
self
.
failUnless
(
filename
.
endswith
(
'.zexp'
)
or
self
.
failUnless
(
filename
.
endswith
(
'.zexp'
)
or
filename
.
endswith
(
'.xml'
))
filename
.
endswith
(
'.xml'
))
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
ObjectManagerTests
)
)
suite
.
addTest
(
unittest
.
makeSuite
(
ObjectManagerTests
)
)
...
...
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