[server/sources] fix docstring for eid_type_source
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 24 Jul 2015 16:09:37 +0200
changeset 10575 036f5964e6fe
parent 10574 6a07c2dc3d85
child 10576 1ee631aedf2f
[server/sources] fix docstring for eid_type_source
server/sources/__init__.py
server/sources/native.py
--- 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):