Use registry['cubicweb.registry'] instead of registry['cubicweb.appli'].vreg because the application may not be present.
authorChristophe de Vienne <christophe@unlish.com>
Wed, 06 Aug 2014 19:06:32 +0200
changeset 11498 a8aaff87c1fc
parent 11497 855219da7c70
child 11499 60a504740951
Use registry['cubicweb.registry'] instead of registry['cubicweb.appli'].vreg because the application may not be present. Related to #4291173
pyramid_cubicweb/core.py
--- a/pyramid_cubicweb/core.py	Thu Aug 21 22:16:51 2014 +0200
+++ b/pyramid_cubicweb/core.py	Wed Aug 06 19:06:32 2014 +0200
@@ -56,7 +56,7 @@
 
         self.path = request.upath_info
 
-        vreg = request.registry['cubicweb.appli'].vreg
+        vreg = request.registry['cubicweb.registry']
         https = request.scheme == 'https'
 
         post = request.params