'Return a list of two-tuples giving links to user resources and text to
associate with those links.'

def _users(self):

    users = []
    for user in self._pwd.getpwall():
        (name, passwd, uid, gid, gecos, dir, shell) = user
        realname = gecos.split(',')[0]
        if (not realname):
            realname = name
        if os.path.exists(os.path.join(dir, self.userDirName)):
            users.append((name, (realname + '    (file)')))
        twistdsock = os.path.join(dir, self.userSocketName)
        if os.path.exists(twistdsock):
            linkName = (name + '.twistd')
            users.append((linkName, (realname + '    (twistd)')))
    return users
