dbapi.py
changeset 5359 d83a227df75c
parent 5347 8ebed973819b
child 5364 e0feefb87de5
--- 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)