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
3494ef44
Commit
3494ef44
authored
Jul 02, 2007
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1306: Missing acquisition context on local roles screen.
parent
d130a1bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+2
-1
No files found.
doc/CHANGES.txt
View file @
3494ef44
...
@@ -102,6 +102,8 @@ Zope Changes
...
@@ -102,6 +102,8 @@ Zope Changes
Bugs Fixed
Bugs Fixed
- Collector #1306: Missing acquisition context on local roles screen.
- Collector #2153: Supporting unquoted cookies with spaces.
- Collector #2153: Supporting unquoted cookies with spaces.
- The REQUEST no longer accepts holds after it has been closed.
- The REQUEST no longer accepts holds after it has been closed.
...
...
lib/python/AccessControl/Role.py
View file @
3494ef44
...
@@ -407,11 +407,12 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
...
@@ -407,11 +407,12 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
if
mlu
<
0
:
raise
OverflowError
if
mlu
<
0
:
raise
OverflowError
un
=
getattr
(
aclu
,
'user_names'
,
_notfound
)
un
=
getattr
(
aclu
,
'user_names'
,
_notfound
)
if
un
is
not
_notfound
:
if
un
is
not
_notfound
:
un
=
aclu
.
__of__
(
item
).
user_names
# rewrap
unl
=
un
()
unl
=
un
()
# maxlistusers of 0 is list all
# maxlistusers of 0 is list all
if
len
(
unl
)
>
mlu
and
mlu
!=
0
:
if
len
(
unl
)
>
mlu
and
mlu
!=
0
:
raise
OverflowError
raise
OverflowError
for
name
in
un
()
:
for
name
in
un
l
:
dict
[
name
]
=
1
dict
[
name
]
=
1
item
=
getattr
(
item
,
'aq_parent'
,
_notfound
)
item
=
getattr
(
item
,
'aq_parent'
,
_notfound
)
if
item
is
_notfound
:
if
item
is
_notfound
:
...
...
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