# HG changeset patch # User Mads Kiilerich # Date 2017-08-12 17:32:27 # Node ID e40122629a019e0aaa76f986b07ac2c414073a43 # Parent 1ae6e0aa87c519ba1d688c0eaa9f42cb28496e9f rcext: this command actually *does* require a config file ... but doesn't require db configuration 'gearbox make-rcext' would fail when trying to do config['here'] without initializing the configuration. The command would work if we gave it a whole db session, but it is more correct to only require the configuration if that is all it need. The command will however still fail, as the configuration isn't passed on to tg.config . diff --git a/kallithea/lib/paster_commands/make_rcextensions.py b/kallithea/lib/paster_commands/make_rcextensions.py --- a/kallithea/lib/paster_commands/make_rcextensions.py +++ b/kallithea/lib/paster_commands/make_rcextensions.py @@ -41,7 +41,7 @@ class Command(BasePasterCommand): The file contains instructions on how it can be customized. """ - takes_config_file = False + requires_db_session = False def take_action(self, args): from tg import config