# HG changeset patch # User Julien Cristau # Date 1437746977 -7200 # Node ID 036f5964e6fe33ee3ed18631975092202c04d284 # Parent 6a07c2dc3d85f4de0cf48221607e02c4473e11e4 [server/sources] fix docstring for eid_type_source diff -r 6a07c2dc3d85 -r 036f5964e6fe server/sources/__init__.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 """ + """return a tuple (type, extid, source) for the entity with id """ raise NotImplementedError(self) def create_eid(self, cnx): diff -r 6a07c2dc3d85 -r 036f5964e6fe server/sources/native.py --- 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 """ + """return a tuple (type, extid, source) for the entity with id """ 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 """ + """return a tuple (type, extid, source) for the entity with id """ sql = 'SELECT type, extid FROM entities WHERE eid=%s' % eid res = self._eid_type_source(cnx, eid, sql) if not isinstance(res, list):