paster setup-app --name=wiki development.ini

When your are using some kind of middleware (ex. "Paste#urlmap") in development.ini, maybe you would like to run a command like this...

$ paster setup-app --name=wiki development.ini

In default, this command would not behave as expected. (Pylons 0.6.1)
Change websetup.py and it goes well.

def setup_config(command, filename, section, vars):
    """Place any commands to setup quickwiki here"""

    import quickwiki.model as model
-    conf = appconfig('config:' + filename)
+    conf = appconfig('config:' + filename, name=section.split(':', 1)[1])
    load_environment(conf.global_conf, conf.local_conf)                                                                                                                 

    ...
    

posted by id:junya_hayashi