--- a/server/sources/__init__.py Mon Jul 27 10:00:32 2015 +0200
+++ b/server/sources/__init__.py Fri Jul 24 16:09:37 2015 +0200
@@ -395,7 +395,7 @@
# system source interface #################################################
def eid_type_source(self, cnx, eid):
- """return a tuple (type, source, extid) for the entity with id <eid>"""
+ """return a tuple (type, extid, source) for the entity with id <eid>"""
raise NotImplementedError(self)
def create_eid(self, cnx):
--- a/server/sources/native.py Mon Jul 27 10:00:32 2015 +0200
+++ b/server/sources/native.py Fri Jul 24 16:09:37 2015 +0200
@@ -849,7 +849,7 @@
raise UnknownEid(eid)
def eid_type_source(self, cnx, eid): # pylint: disable=E0202
- """return a tuple (type, source, extid) for the entity with id <eid>"""
+ """return a tuple (type, extid, source) for the entity with id <eid>"""
sql = 'SELECT type, extid, asource FROM entities WHERE eid=%s' % eid
res = self._eid_type_source(cnx, eid, sql)
if res[-2] is not None:
@@ -859,7 +859,7 @@
return res
def eid_type_source_pre_131(self, cnx, eid):
- """return a tuple (type, source, extid) for the entity with id <eid>"""
+ """return a tuple (type, extid, source) for the entity with id <eid>"""
sql = 'SELECT type, extid FROM entities WHERE eid=%s' % eid
res = self._eid_type_source(cnx, eid, sql)
if not isinstance(res, list):