server/repository.py
branchtls-sprint
changeset 1138 22f634977c95
parent 1016 26387b836099
child 1263 01152fffd593
--- a/server/repository.py	Mon Mar 23 18:53:53 2009 +0100
+++ b/server/repository.py	Wed Mar 25 10:40:22 2009 +0100
@@ -394,11 +394,13 @@
         return euser
 
     def _build_user(self, session, eid):
+        """return a EUser entity for user with the given eid"""
         cls = self.vreg.etype_class('EUser')
         rql = cls.fetch_rql(session.user, ['X eid %(x)s'])
         rset = session.execute(rql, {'x': eid}, 'x')
         assert len(rset) == 1, rset
         euser = rset.get_entity(0, 0)
+        # pylint: disable-msg=W0104
         # prefetch / cache euser's groups and properties. This is especially
         # useful for internal sessions to avoid security insertions
         euser.groups