[server] Deprecate Repository.sources_by_eid 3.25
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 12 Apr 2017 14:54:10 +0200
branch3.25
changeset 12147 232eefd6d3b3
parent 12146 d540defa0591
child 12148 79160d54662e
[server] Deprecate Repository.sources_by_eid It's not used anymore within cubicweb itself.
cubicweb/server/repository.py
--- a/cubicweb/server/repository.py	Wed Apr 05 14:59:09 2017 +0200
+++ b/cubicweb/server/repository.py	Wed Apr 12 14:54:10 2017 +0200
@@ -324,6 +324,7 @@
         return mapping
 
     @property
+    @deprecated("[3.25] use source_by_eid(<eid>)")
     def sources_by_eid(self):
         mapping = {self.system_source.eid: self.system_source}
         mapping.update((sourceent.eid, source)