Changeset 7213


Ignore:
Timestamp:
26 Nov 2011, 17:16:30 (13 years ago)
Author:
Henrik Bettermann
Message:

The title attribute of a user (IAccount object) should be used for the fullname of a user not the description attribute. The description/notice field can be used to leave a message to the user. We don't need a user description on the portal.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r6756 r7213  
    116116            <select id="user" name="user">
    117117              <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
    118               <span tal:replace="user/val/description">USERTITLE
     118              <span tal:replace="user/val/title">USERTITLE
    119119              </span>
    120120              </option>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt

    r6756 r7213  
    8686            <select id="user" name="user">
    8787              <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
    88               <span tal:replace="user/val/description">USERTITLE
     88              <span tal:replace="user/val/title">USERTITLE
    8989              </span>
    9090              </option>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt

    r6460 r7213  
    140140            <select id="user" name="user">
    141141              <option tal:attributes="value user/name" tal:repeat="user view/getUsers">
    142               <span tal:replace="user/val/description">USERTITLE
     142              <span tal:replace="user/val/title">USERTITLE
    143143              </span>
    144144              </option>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt

    r6460 r7213  
    117117            <select id="user" name="user">
    118118              <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
    119               <span tal:replace="user/val/description">USERTITLE
     119              <span tal:replace="user/val/title">USERTITLE
    120120              </span>
    121121              </option>
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.py

    r7205 r7213  
    213213    for local_role, user_name, setting in role_map.getPrincipalsAndRoles():
    214214        user = grok.getSite()['users'].get(user_name,None)
    215         user_title = getattr(user, 'description', user_name)
     215        user_title = getattr(user, 'title', user_name)
    216216        local_role_title = dict(get_all_roles())[local_role].title
    217217        yield dict(user_name = user_name,
Note: See TracChangeset for help on using the changeset viewer.