Ignore:
Timestamp:
28 Jan 2020, 12:39:18 (5 years ago)
Author:
Henrik Bettermann
Message:

Make getUsers customizable.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r15818 r15964  
    6767from waeup.kofa.university.course import Course
    6868from waeup.kofa.permissions import (
    69     get_users_with_local_roles, get_all_roles, get_all_users,
     69    get_users_with_local_roles, get_all_roles,
    7070    get_users_with_role)
    7171
     
    328328
    329329    def getUsers(self):
    330         return get_all_users()
     330        return getUtility(IKofaUtils).getUsers()
    331331
    332332    def getUsersWithLocalRoles(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatemanagepage.pt

    r14647 r15964  
    118118            <option tal:repeat="user view/getUsers"
    119119                    tal:attributes="value user/name">
    120             <span tal:replace="user/val/title">USERTITLE</span>
    121             (<span tal:replace="user/val/name">USERNAME</span>)
     120            <span tal:replace="user/val">USERSTRING</span>
    122121            </option>
    123122          </select>
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/coursemanagepage.pt

    r14264 r15964  
    6363            <option tal:repeat="user view/getUsers"
    6464                    tal:attributes="value user/name">
    65             <span tal:replace="user/val/title">USERTITLE</span>
    66             (<span tal:replace="user/val/name">USERNAME</span>)
     65            <span tal:replace="user/val">USERSTRING</span>
    6766            </option>
    6867          </select>
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/departmentmanagepage.pt

    r14264 r15964  
    123123        <br />
    124124        <div class="form-group">
    125           <select class="form-control" id="user" name="user">
     125          <select id="user" name="user" class="form-control">
    126126            <option tal:repeat="user view/getUsers"
    127127                    tal:attributes="value user/name">
    128             <span tal:replace="user/val/title">USERTITLE</span>
    129             (<span tal:replace="user/val/name">USERNAME</span>)
     128            <span tal:replace="user/val">USERSTRING</span>
    130129            </option>
    131130          </select>
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/facultymanagepage.pt

    r14262 r15964  
    100100            <option tal:repeat="user view/getUsers"
    101101                    tal:attributes="value user/name">
    102             <span tal:replace="user/val/title">USERTITLE</span>
    103             (<span tal:replace="user/val/name">USERNAME</span>)
     102            <span tal:replace="user/val">USERSTRING</span>
    104103            </option>
    105104          </select>
Note: See TracChangeset for help on using the changeset viewer.