equal
deleted
inserted
replaced
597 eid, login, groups, properties = self._repo.user_info(self.sessionid, |
597 eid, login, groups, properties = self._repo.user_info(self.sessionid, |
598 props) |
598 props) |
599 if req is None: |
599 if req is None: |
600 req = self.request() |
600 req = self.request() |
601 rset = req.eid_rset(eid, 'CWUser') |
601 rset = req.eid_rset(eid, 'CWUser') |
602 if 'etypes' in self.vreg: |
602 if self.vreg is not None and 'etypes' in self.vreg: |
603 user = self.vreg['etypes'].etype_class('CWUser')(req, rset, row=0, |
603 user = self.vreg['etypes'].etype_class('CWUser')(req, rset, row=0, |
604 groups=groups, |
604 groups=groups, |
605 properties=properties) |
605 properties=properties) |
606 else: |
606 else: |
607 from cubicweb.entity import Entity |
607 from cubicweb.entity import Entity |