diff options
author | Benji York <benji@benjiyork.com> | 2008-03-05 23:37:11 +0000 |
---|---|---|
committer | Benji York <benji@benjiyork.com> | 2008-03-05 23:37:11 +0000 |
commit | c0d7a6696f547eb9e61e3983bc555eca509b5b71 (patch) | |
tree | 1de7591596196cb2e45bc80ea4042c819366cb3b | |
parent | aba975b20c71b9912181165a00d2671d141a045e (diff) | |
download | zope-security-c0d7a6696f547eb9e61e3983bc555eca509b5b71.tar.gz |
change system user (zope.security.management.system_user) to have a more
presentable title
-rw-r--r-- | CHANGES.txt | 2 | ||||
-rw-r--r-- | src/zope/security/_definitions.py | 2 | ||||
-rw-r--r-- | src/zope/security/tests/test_management.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 1adf2d6..e8f3b36 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -6,6 +6,8 @@ CHANGES ------------ - Updated dependencies (added zope.thread explictly). +- Changed title for ``zope.security.management.system_user`` to be more + presentable. 3.4.0 - 2007/10/02 ------------------ diff --git a/src/zope/security/_definitions.py b/src/zope/security/_definitions.py index aa0d445..09a6a84 100644 --- a/src/zope/security/_definitions.py +++ b/src/zope/security/_definitions.py @@ -25,5 +25,5 @@ thread_local = threading.local() class system_user(object): zope.interface.classProvides(zope.security.interfaces.IPrincipal) id = u'zope.security.management.system_user' - title = u'Special System User that typically has all permissions' + title = u'System' description = u'' diff --git a/src/zope/security/tests/test_management.py b/src/zope/security/tests/test_management.py index 63f0000..eda2318 100644 --- a/src/zope/security/tests/test_management.py +++ b/src/zope/security/tests/test_management.py @@ -119,7 +119,8 @@ class Test(CleanUp, unittest.TestCase): self.assertEquals(system_user.id, u'zope.security.management.system_user') - self.assert_(system_user.title) + self.assertEquals(system_user.title, u'System') + for name in 'id', 'title', 'description': self.assert_(isinstance(getattr(system_user, name), unicode)) |