[gen] Added UserWrapper.isSpecial that returns True fr special users (admin, system, anon).

This commit is contained in:
Gaetan Delannay 2014-11-12 08:49:11 +01:00
parent 4a393e76af
commit 55c36a1123

View file

@ -23,6 +23,8 @@ class UserWrapper(AbstractWrapper):
href=":'%s/edit?page=passwords' % user.url">:_('change_password')</a>
</td>''')
def isSpecial(self): return self.login in self.specialUsers
def getTitle(self, normalized=False):
'''Returns a nice name for this user, based on available information:
name/first name or title or login. If p_normalized is True, special