Lines Matching refs:mixin
459 # Figure out the whole list of mixins, and check that every mixin
460 # listed by a config or another mixin actually exists.
463 for mixin in mixins:
464 if not mixin in self.mixins:
465 errs.append('Unknown mixin "%s" referenced by config "%s".' %
466 (mixin, config))
467 referenced_mixins.add(mixin)
469 for mixin in self.mixins:
470 for sub_mixin in self.mixins[mixin].get('mixins', []):
472 errs.append('Unknown mixin "%s" referenced by mixin "%s".' %
473 (sub_mixin, mixin))
476 # Check that every mixin defined is actually referenced somewhere.
477 for mixin in self.mixins:
478 if not mixin in referenced_mixins:
479 errs.append('Unreferenced mixin "%s".' % mixin)
652 raise MBErr('Unknown mixin "%s"' % m)