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
ace47b97
Commit
ace47b97
authored
Mar 01, 2002
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Route user object wrap change to trunk
parent
288d5bdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+6
-2
No files found.
doc/CHANGES.txt
View file @
ace47b97
...
...
@@ -53,6 +53,9 @@ 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
context
Zope 2.5.1 beta 1
...
...
lib/python/AccessControl/User.py
View file @
ace47b97
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.16
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.16
7
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
...
...
@@ -487,7 +487,11 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
def
getUserById
(
self
,
id
,
default
=
_marker
):
"""Return the user corresponding to the given id.
"""
try
:
return
self
.
getUser
(
id
)
# 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
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