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

Make getUsers customizable.

File:
1 edited

Legend:

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

    r15833 r15964  
    272272            subject, body, config)
    273273
     274    def getUsers(self):
     275        users = sorted(
     276            grok.getSite()['users'].items(), key=lambda x: x[1].title)
     277        for key, val in users:
     278            yield(dict(name=key, val="%s (%s)" % (val.title, val.name)))
     279
    274280    @property
    275281    def tzinfo(self):
Note: See TracChangeset for help on using the changeset viewer.