Mercurial > kallithea
changeset 6796:e40122629a01
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 .
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 12 Aug 2017 17:32:27 +0200 |
parents | 1ae6e0aa87c5 |
children | d8b7a1a023a6 |
files | kallithea/lib/paster_commands/make_rcextensions.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/make_rcextensions.py Sat Aug 12 17:30:45 2017 +0200 +++ b/kallithea/lib/paster_commands/make_rcextensions.py Sat Aug 12 17:32:27 2017 +0200 @@ -41,7 +41,7 @@ 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