Ignore:
Timestamp:
23 Nov 2011, 09:32:17 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's be more precise: Global roles actually are site roles. Since the user does not understand the term 'site' we should use the term 'portal' in the UI instead. Now we have portal (site) roles, local roles and dynamic roles.

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  
    139139  >>> browser.getControl("Cancel", index=0).click()
    140140
    141 We can add global roles which are then displayed on the user container page.
    142 Since the test browser does not use javascript, we have to add global roles
     141We can add site roles which are then displayed on the user container page.
     142Since the test browser does not use javascript, we have to add site roles
    143143manually by setting the roles attribute:
    144144
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7177 r7178  
    274274        return local_roles_string
    275275
    276     def getGlobalRoles(self, account):
    277         global_roles = account.roles
    278         global_roles_string = ''
    279         for global_role in global_roles:
    280             role_title = dict(getAllRoles())[global_role].title
    281             global_roles_string += '%s <br />' % role_title
    282         return global_roles_string
     276    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
    283283
    284284class AddUserFormPage(WAeUPAddFormPage):
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/userscontainerpage.pt

    r7176 r7178  
    1111      <th>Name</th>
    1212      <th>Description</th>
    13       <th>Global roles</th>
    14       <th>Local roles</th>
     13      <th>Portal Roles</th>
     14      <th>Local Roles</th>
    1515      <th></th>
    1616    </tr>
     
    2121      <td tal:content="account/title">Title</td>
    2222      <td tal:content="account/description">Description</td>
    23       <td tal:content="structure python:view.getGlobalRoles(account)">Global Roles</td>
    24       <td tal:content="structure python:view.getLocalRoles(account)">Local 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>
    2525      <td class="text-right">
    2626        <form method="post">
Note: See TracChangeset for help on using the changeset viewer.