hooks/syncschema.py
changeset 9080 f0c00b07799a
parent 8943 58b3b2d9c965
child 9402 2c48c091b6a2
equal deleted inserted replaced
9079:f8c8e79218e1 9080:f0c00b07799a
   209         for eschema in self.session.repo.schema.entities():
   209         for eschema in self.session.repo.schema.entities():
   210             if not eschema.final:
   210             if not eschema.final:
   211                 clear_cache(eschema, 'ordered_relations')
   211                 clear_cache(eschema, 'ordered_relations')
   212 
   212 
   213     def postcommit_event(self):
   213     def postcommit_event(self):
   214         rebuildinfered = self.session.data.get('rebuild-infered', True)
   214         rebuildinfered = self.session.get_shared_data('rebuild-infered', True)
   215         repo = self.session.repo
   215         repo = self.session.repo
   216         # commit event should not raise error, while set_schema has chances to
   216         # commit event should not raise error, while set_schema has chances to
   217         # do so because it triggers full vreg reloading
   217         # do so because it triggers full vreg reloading
   218         try:
   218         try:
   219             if rebuildinfered:
   219             if rebuildinfered: