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
cbc6e198
Commit
cbc6e198
authored
May 02, 2006
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When you add roles in manage_access, roles are now stripped of any leading or trailing
spaces.
parent
21b7c090
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+1
-1
No files found.
doc/CHANGES.txt
View file @
cbc6e198
...
@@ -240,6 +240,8 @@ Zope Changes
...
@@ -240,6 +240,8 @@ Zope Changes
from the Zope 3 source tree (to get rid of redundant packages)
from the Zope 3 source tree (to get rid of redundant packages)
Bugs Fixed
Bugs Fixed
- When you add roles in manage_access, roles are now stripped of
any leading or trailing spaces.
- Collector #2062: Fix manage_historyCopy, which was broken, and write
- Collector #2062: Fix manage_historyCopy, which was broken, and write
tests for it.
tests for it.
...
...
lib/python/AccessControl/Role.py
View file @
cbc6e198
...
@@ -473,7 +473,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
...
@@ -473,7 +473,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
"""
"""
if
submit
==
'Add Role'
:
if
submit
==
'Add Role'
:
role
=
reqattr
(
REQUEST
,
'role'
)
role
=
reqattr
(
REQUEST
,
'role'
)
.
strip
()
return
self
.
_addRole
(
role
,
REQUEST
)
return
self
.
_addRole
(
role
,
REQUEST
)
if
submit
==
'Delete Role'
:
if
submit
==
'Delete Role'
:
...
...
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