Commits

Nikolaj Sjujskij committed b7d87ff

Show full user name (set in Preferences) instead of login

Comments (0)

Files changed (1)

wikiticketcalendar/macro.py

         if self.config.getbool('wiki', 'render_unsafe_content') is True:
             self.sanitize = False
 
+        # store known_users dict
+        self.known_users = {}
+        for tpl in self.env.get_known_users():
+            self.known_users[tpl[0]] = tpl[1]
+
         #  [wikiticketcalendar] section
         self.due_field_name = self.config.get('wikiticketcalendar',
                                   'ticket.due_field.name') or 'due_close'
         status = t.get('status')
         summary = to_unicode(t.get('summary'))
         owner = to_unicode(t.get('owner'))
+        owner = self.known_users[owner]
         description = to_unicode(t.get('description')[:1024])
         url = t.get('href')