Changeset 15965


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

Customize getUsers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r15862 r15965  
    2020
    2121import string
     22import grok
    2223from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
    2324from waeup.kofa.students.workflow  import ALUMNI_STATES
     
    309310            return 'XXX'
    310311        return fullname
     312
     313    def getUsers(self):
     314        users = sorted(
     315            grok.getSite()['users'].items(), key=lambda x: x[0])
     316        for key, val in users:
     317            yield(dict(name=key, val="%s - %s" % (val.name, val.title)))
Note: See TracChangeset for help on using the changeset viewer.