server/sources/native.py
changeset 10575 036f5964e6fe
parent 10550 d4bd28d5fca8
child 10626 93f8d239c708
--- 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):