Changeset 7178 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 23 Nov 2011, 09:32:17 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r7162 r7178 139 139 >>> browser.getControl("Cancel", index=0).click() 140 140 141 We can add globalroles which are then displayed on the user container page.142 Since the test browser does not use javascript, we have to add globalroles141 We can add site roles which are then displayed on the user container page. 142 Since the test browser does not use javascript, we have to add site roles 143 143 manually by setting the roles attribute: 144 144 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7177 r7178 274 274 return local_roles_string 275 275 276 def get GlobalRoles(self, account):277 global_roles = account.roles278 global_roles_string = ''279 for global_role in global_roles:280 role_title = dict(getAllRoles())[ global_role].title281 global_roles_string += '%s <br />' % role_title282 return global_roles_string276 def getSiteRoles(self, account): 277 site_roles = account.roles 278 site_roles_string = '' 279 for site_role in site_roles: 280 role_title = dict(getAllRoles())[site_role].title 281 site_roles_string += '%s <br />' % role_title 282 return site_roles_string 283 283 284 284 class AddUserFormPage(WAeUPAddFormPage): -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/userscontainerpage.pt
r7176 r7178 11 11 <th>Name</th> 12 12 <th>Description</th> 13 <th> Global roles</th>14 <th>Local roles</th>13 <th>Portal Roles</th> 14 <th>Local Roles</th> 15 15 <th></th> 16 16 </tr> … … 21 21 <td tal:content="account/title">Title</td> 22 22 <td tal:content="account/description">Description</td> 23 <td tal:content="structure python:view.get GlobalRoles(account)">Global Roles</td>24 <td tal:content="structure python:view.getLocalRoles(account)">L ocal Roles</td>23 <td tal:content="structure python:view.getSiteRoles(account)">SITE ROLES</td> 24 <td tal:content="structure python:view.getLocalRoles(account)">LOCAL ROLES</td> 25 25 <td class="text-right"> 26 26 <form method="post">
Note: See TracChangeset for help on using the changeset viewer.