code: def inject_all_external_modules(self, classname=None,
                                  allow_override='override+warn',
                                  strict=True):
      if classname is None:
          classname = self.__class__.__name__
      NEW = True
      if NEW:
          classkey_list = [key for key in __CLASSTYPE_ATTRIBUTES__
                           if key[0] == classname]
      else:
          injected_modules = get_injected_modules(classname)
          classkey_list = [module.CLASS_INJECT_KEY
                           for module in injected_modules]
      for classkey in classkey_list:
          inject_instance(
              self, classkey=classkey,
              allow_override=allow_override, strict=False)
      for classkey in classkey_list:
          postinject_instance(
              self, classkey=classkey)