Lines Matching refs:mixin
450 # Figure out the whole list of mixins, and check that every mixin
451 # listed by a config or another mixin actually exists.
454 for mixin in mixins:
455 mixin in self.mixins:
456 errs.append('Unknown mixin "%s" referenced by config "%s".' %
457 (mixin, config))
458 referenced_mixins.add(mixin)
460 for mixin in self.mixins:
461 for sub_mixin in self.mixins[mixin].get('mixins', []):
463 errs.append('Unknown mixin "%s" referenced by mixin "%s".' %
464 (sub_mixin, mixin))
467 # Check that every mixin defined is actually referenced somewhere.
468 for mixin in self.mixins:
469 if not mixin in referenced_mixins:
470 errs.append('Unreferenced mixin "%s".' % mixin)
639 raise MBErr('Unknown mixin "%s"' % m)