# HG changeset patch # User Denis Laxalde # Date 1490344671 -3600 # Node ID 3fd9c12a44268a5dfd4c7b90142143a90a66364d # Parent 1cfd19c4b9b55c2f1f974889d4e9fbe315c2f3ac [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. diff -r 1cfd19c4b9b5 -r 3fd9c12a4426 cubicweb/pyramid/__init__.py --- 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)