cubicweb/hooks/metadata.py
changeset 11756 60fed6272771
parent 11057 0b59724cb3f2
child 11757 e845746b4d3c
equal deleted inserted replaced
11755:96ced95e4002 11756:60fed6272771
   164         repo = self.cnx.repo
   164         repo = self.cnx.repo
   165         entity = self.entity
   165         entity = self.entity
   166         extid = entity.cw_metainformation()['extid']
   166         extid = entity.cw_metainformation()['extid']
   167         repo._type_source_cache[entity.eid] = (
   167         repo._type_source_cache[entity.eid] = (
   168             entity.cw_etype, None, self.newsource.uri)
   168             entity.cw_etype, None, self.newsource.uri)
   169         repo._extid_cache[extid] = -entity.eid
       
   170 
   169 
   171 
   170 
   172 class ChangeEntitySourceDeleteHook(MetaDataHook):
   171 class ChangeEntitySourceDeleteHook(MetaDataHook):
   173     """support for moving an entity from an external source by watching 'Any
   172     """support for moving an entity from an external source by watching 'Any
   174     cw_source CWSource' relation
   173     cw_source CWSource' relation