'Return a list of the indices of all columns associated
to a given term.'

def termcolumns(self, query_term, dict=False):

    if self.hasterm(query_term):
        names = query_term.names()
        value = OrderedDict()
        for name in names:
            value[name] = self._names.index(name)
    else:
        raise ValueError('term    not    in    formula')
    if dict:
        return value
    else:
        return list(itervalues(value))
