'Return a list of theme directories, beginning with this theme\'s,
then the base theme\'s, then that one\'s base theme\'s, etc.'

def get_dirchain(self):

    chain = [self.themedir]
    base = self.base
    while (base is not None):
        chain.append(base.themedir)
        base = base.base
    return chain
