Last change
on this file since 4793 was
4789,
checked in by uli, 15 years ago
|
Merge changes from ulif-layout back into trunk (finally).
|
File size:
490 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.permissions import getRoles |
---|
19 | >>> getRoles() |
---|
20 | ['waeup.PortalManager', 'waeup.PortalUser'] |
---|
21 | |
---|
Note: See
TracBrowser for help on using the repository browser.