vregistry.py
changeset 6140 65a619eb31c4
parent 6068 3bbc79a39d3a
child 6366 1806148d6ce8
equal deleted inserted replaced
6139:f76599a96238 6140:65a619eb31c4
   465         # load the module
   465         # load the module
   466         module = load_module_from_name(modname)
   466         module = load_module_from_name(modname)
   467         self.load_module(module)
   467         self.load_module(module)
   468 
   468 
   469     def load_module(self, module):
   469     def load_module(self, module):
   470         self.info('loading %s', module)
   470         self.info('loading %s from %s', module.__name__, module.__file__)
   471         if hasattr(module, 'registration_callback'):
   471         if hasattr(module, 'registration_callback'):
   472             module.registration_callback(self)
   472             module.registration_callback(self)
   473         else:
   473         else:
   474             for objname, obj in vars(module).items():
   474             for objname, obj in vars(module).items():
   475                 if objname.startswith('_'):
   475                 if objname.startswith('_'):