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
99272e48
Commit
99272e48
authored
Mar 01, 2002
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out getUserById fix in deference to getOwner patch
parent
ace47b97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
doc/CHANGES.txt
doc/CHANGES.txt
+1
-1
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+2
-3
No files found.
doc/CHANGES.txt
View file @
99272e48
...
...
@@ -53,7 +53,7 @@ Zope Changes
- Collector #250: applied several patches for TextIndex for better
unicode support for the GlobbingLexicon
- Collector #254:
user object was being returned without wrapping
- Collector #254:
return owner object from getOwner wrapped in its
context
...
...
lib/python/AccessControl/User.py
View file @
99272e48
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.16
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.16
8
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
...
...
@@ -490,8 +490,7 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
# The connection between getting by ID and by name is not a strong
# one
try
:
result
=
self
.
getUser
(
id
)
return
result
.
__of__
(
self
)
# Wrap in our context
return
self
.
getUser
(
id
)
except
:
if
default
is
_marker
:
raise
return
default
...
...
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