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
36303837
Commit
36303837
authored
May 16, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP #142563: Fix AccessControl.User.NullUnrestrictedUserTests.__str__.
parent
a38c7926
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/AccessControl/User.py
src/AccessControl/User.py
+3
-0
src/AccessControl/tests/testUser.py
src/AccessControl/tests/testUser.py
+5
-0
No files found.
doc/CHANGES.rst
View file @
36303837
...
...
@@ -44,6 +44,8 @@ Features Added
Bugs Fixed
++++++++++
- LP #142563: Fix ``AccessControl.User.NullUnrestrictedUserTests.__str__``.
- Fix several template errors in SiteErrorLog (chameleon compatibility).
- LP #267820: Fix bad except clause in the ``sequence_sort`` method of
...
...
src/AccessControl/User.py
View file @
36303837
...
...
@@ -400,6 +400,9 @@ class NullUnrestrictedUser(SpecialUser):
def
has_permission
(
self
,
permission
,
object
):
return
0
def
__str__
(
self
):
# See https://bugs.launchpad.net/zope2/+bug/142563
return
repr
(
self
)
def
readUserAccessFile
(
filename
):
...
...
src/AccessControl/tests/testUser.py
View file @
36303837
...
...
@@ -205,6 +205,11 @@ class NullUnrestrictedUserTests(unittest.TestCase):
null
=
self
.
_makeOne
()
self
.
assertEqual
(
repr
(
null
),
"<NullUnrestrictedUser (None, None)>"
)
def
test___str__
(
self
):
# See https://bugs.launchpad.net/zope2/+bug/142563
null
=
self
.
_makeOne
()
self
.
assertEqual
(
str
(
null
),
"<NullUnrestrictedUser (None, None)>"
)
class
UserTests
(
unittest
.
TestCase
):
...
...
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