Last change
on this file since 4920 was
4920,
checked in by uli, 15 years ago
|
Make unit tests run again with the new package layout.
|
File size:
495 bytes
|
Line | |
---|
1 | WAeUP permissions and roles |
---|
2 | *************************** |
---|
3 | |
---|
4 | Permissions and roles used in a WAeUP portal. |
---|
5 | |
---|
6 | :Test-Layer: unit |
---|
7 | |
---|
8 | |
---|
9 | Before we can do something useful with roles and permissions, we have |
---|
10 | to register them. This can be done simply by grokking the `waeup` |
---|
11 | package: |
---|
12 | |
---|
13 | >>> import grok |
---|
14 | >>> grok.testing.grok('waeup') |
---|
15 | |
---|
16 | We can get all roles defined in a WAeUP portal: |
---|
17 | |
---|
18 | >>> from waeup.sirp.permissions import getRoles |
---|
19 | >>> getRoles() |
---|
20 | ['waeup.PortalManager', 'waeup.PortalUser'] |
---|
21 | |
---|
Note: See
TracBrowser for help on using the repository browser.