author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 20 Apr 2010 18:10:42 +0200 | |
changeset 5359 | d83a227df75c |
parent 5358 | d4d294610ee7 |
child 5360 | 96893296772f |
--- a/dbapi.py Tue Apr 20 18:09:56 2010 +0200 +++ b/dbapi.py Tue Apr 20 18:10:42 2010 +0200 @@ -599,7 +599,7 @@ if req is None: req = self.request() rset = req.eid_rset(eid, 'CWUser') - if 'etypes' in self.vreg: + if self.vreg is not None and 'etypes' in self.vreg: user = self.vreg['etypes'].etype_class('CWUser')(req, rset, row=0, groups=groups, properties=properties)