Changeset - e40122629a01
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-08-12 17:32:27
mads@kiilerich.com
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 .
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/make_rcextensions.py
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)