cwvreg.py
changeset 2025 010a4b0fe855
parent 1985 9c1db4e06095
child 2058 7ef12c03447c
child 2223 59588e2d5cd1
--- a/cwvreg.py	Wed Jun 03 09:15:20 2009 +0200
+++ b/cwvreg.py	Wed Jun 03 16:52:24 2009 +0200
@@ -114,7 +114,12 @@
 
     def register_objects(self, path, force_reload=None):
         """overriden to remove objects requiring a missing interface"""
-        if super(CubicWebRegistry, self).register_objects(path, force_reload):
+        extrapath = {}
+        for cubesdir in self.config.cubes_search_path():
+            if cubesdir != self.config.CUBES_DIR:
+                extrapath[cubesdir] = 'cubes'
+        if super(CubicWebRegistry, self).register_objects(path, force_reload,
+                                                          extrapath):
             self.initialization_completed()
             # call vreg_initialization_completed on appobjects and print
             # registry content