Commit 7a7bd34a authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[server] Deprecate Repository.sources_by_eid

It's not used anymore within cubicweb itself.

branch : 3.25
parent d540defa0591
...@@ -324,6 +324,7 @@ class Repository(object): ...@@ -324,6 +324,7 @@ class Repository(object):
return mapping return mapping
@property @property
@deprecated("[3.25] use source_by_eid(<eid>)")
def sources_by_eid(self): def sources_by_eid(self):
mapping = {self.system_source.eid: self.system_source} mapping = {self.system_source.eid: self.system_source}
mapping.update((sourceent.eid, source) mapping.update((sourceent.eid, source)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment