[pyramid] Drop warning about pyramid_debugtoolbar not found in debug mode
Some people way want to run a pyramid server in debug mode without the
toolbar. This warning is annoying for them. Others should just install and
*include* the toolbar by hand.
--- a/cubicweb/pyramid/__init__.py Fri Mar 24 11:21:39 2017 +0100
+++ b/cubicweb/pyramid/__init__.py Fri Mar 24 09:37:51 2017 +0100
@@ -22,7 +22,6 @@
import atexit
import os
-from warnings import warn
import wsgicors
@@ -239,10 +238,3 @@
if asbool(config.registry.settings.get('cubicweb.bwcompat', True)):
config.include('cubicweb.pyramid.bwcompat')
-
- if cwconfig.debugmode:
- try:
- config.include('pyramid_debugtoolbar')
- except ImportError:
- warn('pyramid_debugtoolbar package not available, install it to '
- 'get UI debug features', RuntimeWarning)