server/repository.py
changeset 8943 58b3b2d9c965
parent 8916 2a424950463d
child 8946 fae2f561b0f5
equal deleted inserted replaced
8942:0f60f1061a2e 8943:58b3b2d9c965
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
   311         # source_defs()
   311         # source_defs()
   312         source_config['uri'] = uri
   312         source_config['uri'] = uri
   313         source_config['type'] = type
   313         source_config['type'] = type
   314         return sources.get_source(type, source_config, self, eid)
   314         return sources.get_source(type, source_config, self, eid)
   315 
   315 
   316     def set_schema(self, schema, resetvreg=True, rebuildinfered=True):
   316     def set_schema(self, schema, resetvreg=True):
   317         if rebuildinfered:
       
   318             schema.rebuild_infered_relations()
       
   319         self.info('set schema %s %#x', schema.name, id(schema))
   317         self.info('set schema %s %#x', schema.name, id(schema))
   320         if resetvreg:
   318         if resetvreg:
   321             if self.config._cubes is None:
   319             if self.config._cubes is None:
   322                 self.config.init_cubes(self.get_cubes())
   320                 self.config.init_cubes(self.get_cubes())
   323             # trigger full reload of all appobjects
   321             # trigger full reload of all appobjects