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
bcdbbae2
Commit
bcdbbae2
authored
Mar 12, 2004
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Forward port fix for Collector #1255.
parent
ef0a9070
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
lib/python/AccessControl/Owned.py
lib/python/AccessControl/Owned.py
+2
-2
lib/python/AccessControl/tests/testOwned.py
lib/python/AccessControl/tests/testOwned.py
+10
-1
No files found.
lib/python/AccessControl/Owned.py
View file @
bcdbbae2
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Support for owned objects
$Id: Owned.py,v 1.2
3 2004/01/29 19:33:03 Brian
Exp $
$Id: Owned.py,v 1.2
4 2004/03/12 18:12:11 tseaver
Exp $
"""
import
Globals
,
urlparse
,
SpecialUsers
,
ExtensionClass
...
...
@@ -117,7 +117,7 @@ class Owned(ExtensionClass.Base):
"""
owner
=
self
.
getOwnerTuple
()
if
owner
is
None
:
if
owner
is
None
or
owner
is
UnownableOwner
:
return
None
udb_path
,
oid
=
owner
...
...
lib/python/AccessControl/tests/testOwned.py
View file @
bcdbbae2
"""Unit tests for AccessControl.Owned
$Id: testOwned.py,v 1.
2 2004/01/27 16:59:23
tseaver Exp $
$Id: testOwned.py,v 1.
3 2004/03/12 18:12:11
tseaver Exp $
"""
import
unittest
...
...
@@ -118,6 +118,15 @@ class OwnedTests(unittest.TestCase):
self
.
assertEqual
(
wrapped_owner
,
None
)
def
test_getWrappedOwner_unownable
(
self
):
from
AccessControl.Owned
import
UnownableOwner
owned
=
self
.
_makeOne
()
owned
.
_owner
=
UnownableOwner
wrapped_owner
=
owned
.
getWrappedOwner
()
self
.
assertEqual
(
wrapped_owner
,
None
)
def
test_getWrappedOwner_simple
(
self
):
root
=
FauxRoot
()
...
...
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