'For all items and templates inherite properties and custom
variables.'

def apply_inheritance(self):

    cls = self.inner_class
    for prop in cls.properties:
        self.apply_partial_inheritance(prop)
    for i in itertools.chain(self.items.itervalues(), self.templates.itervalues()):
        i.get_customs_properties_by_inheritance(0)
