support yams'construction_mode tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 10 Mar 2009 19:35:15 +0100
branchtls-sprint
changeset 1035 776a700560e9
parent 1034 0356bbfb2f26
child 1036 593df4919845
support yams'construction_mode
server/serverconfig.py
--- a/server/serverconfig.py	Tue Mar 10 19:34:35 2009 +0100
+++ b/server/serverconfig.py	Tue Mar 10 19:35:15 2009 +0100
@@ -223,7 +223,7 @@
                 hooks.setdefault(event, {}).setdefault(ertype, []).append(cb)
         return hooks
     
-    def load_schema(self, expand_cubes=False):
+    def load_schema(self, expand_cubes=False, construction_mode='strict'):
         from cubicweb.schema import CubicWebSchemaLoader
         if expand_cubes:
             # in case some new dependencies have been introduced, we have to
@@ -231,7 +231,7 @@
             origcubes = self.cubes()
             self._cubes = None
             self.init_cubes(self.expand_cubes(origcubes))
-        schema = CubicWebSchemaLoader().load(self)
+        schema = CubicWebSchemaLoader().load(self, construction_mode=construction_mode)
         if expand_cubes:
             # restaure original value
             self._cubes = origcubes