cwvreg.py
branchstable
changeset 5748 487ab6ac90cc
parent 5608 f9ab62103ad4
child 5752 b0bb553e3be4
child 5886 00a78298d30d
--- a/cwvreg.py	Mon Jun 14 17:56:10 2010 +0200
+++ b/cwvreg.py	Tue Jun 15 18:00:26 2010 +0200
@@ -521,7 +521,7 @@
                     cpath = cfg.build_vregistry_cube_path([cfg.cube_dir(cube)])
                     cleanup_sys_modules(cpath)
         self.reset()
-        self.register_objects(path, force_reload)
+        self.register_objects(path)
         CW_EVENT_MANAGER.emit('after-registry-reload')
 
     def _set_schema(self, schema):
@@ -566,10 +566,11 @@
         if ifaces:
             self._needs_iface[obj] = ifaces
 
-    def register_objects(self, path, force_reload=False):
-        """overriden to remove objects requiring a missing interface"""
+    def register_objects(self, path):
+        """overriden to give cubicweb's extrapath (eg cubes package's __path__)
+        """
         super(CubicWebVRegistry, self).register_objects(
-            path, force_reload, self.config.extrapath)
+            path, self.config.extrapath)
 
     def initialization_completed(self):
         """cw specific code once vreg initialization is completed: