'Check whether view inheritance is based on translated attribute.'

def _valid_inheritance(self, arch):

    for node in arch.xpath('//*[@position]'):
        if (node.tag == 'xpath'):
            match = TRANSLATED_ATTRS_RE.search(node.get('expr', ''))
            if match:
                message = ('View    inheritance    may    not    use    attribute    %r    as    a    selector.' % match.group(1))
                self.raise_view_error(message, self.id)
        else:
            for attr in TRANSLATED_ATTRS:
                if node.get(attr):
                    message = ('View    inheritance    may    not    use    attribute    %r    as    a    selector.' % attr)
                    self.raise_view_error(message, self.id)
    return True
