def METHOD_NAME(self, objectname, name):
    if self.objtype == 'directive':
        return _('%s (directive)') % name
    elif self.objtype == 'role':
        return _('%s (role)') % name
    return ''