cubicweb/server/repository.py
branch3.25
changeset 12147 232eefd6d3b3
parent 12146 d540defa0591
child 12148 79160d54662e
equal deleted inserted replaced
12146:d540defa0591 12147:232eefd6d3b3
   322         mapping.update((sourceent.name, source)
   322         mapping.update((sourceent.name, source)
   323                        for sourceent, source in self._sources())
   323                        for sourceent, source in self._sources())
   324         return mapping
   324         return mapping
   325 
   325 
   326     @property
   326     @property
       
   327     @deprecated("[3.25] use source_by_eid(<eid>)")
   327     def sources_by_eid(self):
   328     def sources_by_eid(self):
   328         mapping = {self.system_source.eid: self.system_source}
   329         mapping = {self.system_source.eid: self.system_source}
   329         mapping.update((sourceent.eid, source)
   330         mapping.update((sourceent.eid, source)
   330                        for sourceent, source in self._sources())
   331                        for sourceent, source in self._sources())
   331         return mapping
   332         return mapping