'Get a Python-attribute of this item instance, falls back
to the same attribute in the parent item if not set in
this instance, used to inherit attributes to components
@param name: the attribute name'

def get(self, name, default=None):

    if (name in self.__dict__):
        value = self.__dict__[name]
    else:
        value = None
    if (value is not None):
        return value
    if (name[:2] == '__'):
        raise AttributeError
    parent = self.parent
    if (parent is not None):
        return parent.get(name)
    return default
