[gen] Added UserWrapper.isSpecial that returns True fr special users (admin, system, anon).
This commit is contained in:
parent
4a393e76af
commit
55c36a1123
|
@ -23,6 +23,8 @@ class UserWrapper(AbstractWrapper):
|
||||||
href=":'%s/edit?page=passwords' % user.url">:_('change_password')</a>
|
href=":'%s/edit?page=passwords' % user.url">:_('change_password')</a>
|
||||||
</td>''')
|
</td>''')
|
||||||
|
|
||||||
|
def isSpecial(self): return self.login in self.specialUsers
|
||||||
|
|
||||||
def getTitle(self, normalized=False):
|
def getTitle(self, normalized=False):
|
||||||
'''Returns a nice name for this user, based on available information:
|
'''Returns a nice name for this user, based on available information:
|
||||||
name/first name or title or login. If p_normalized is True, special
|
name/first name or title or login. If p_normalized is True, special
|
||||||
|
|
Loading…
Reference in a new issue