Mercurial > p > roundup > code
diff roundup/security.py @ 5110:87b0358790ed
Adding some tests for admin.py. Specifically for issue2550572: setting
nosy=+foo on multiple issues gives them all the same exact nosy
list.
To make this work had to change the admin.py code to use
"sys.stdout.write" in place of "print". In the test I now hijack
stdout.write following an existing example of this for admin's
import/export command that hijacks sys.stderr.write.
Also I corrected a misspelling in security.py. The word "everything"
was misspelled. It is not inside _() markers so I don't think it's
going to affect translation and grepping the locale subdir doesn't
show the original string.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 29 Jun 2016 18:35:19 -0400 |
| parents | 8137456a86f3 |
| children | 425b4c4fc345 |
line wrap: on
line diff
--- a/roundup/security.py Tue Jun 28 15:39:38 2016 +1000 +++ b/roundup/security.py Wed Jun 29 18:35:19 2016 -0400 @@ -128,7 +128,7 @@ # default permissions - Admin may do anything for p in 'create edit retire view'.split(): p = self.addPermission(name=p.title(), - description="User may %s everthing"%p) + description="User may %s everything"%p) self.addPermissionToRole('Admin', p) # initialise the permissions and roles needed for the UIs
