Steve Piercy
2016-12-14 258f8482549a75a627e5b80790ca7f7f84308684
fix faulty logic in prequest and pviews
2 files modified
4 ■■■■ changed files
pyramid/scripts/prequest.py 2 ●●● patch | view | raw | blame | history
pyramid/scripts/pviews.py 2 ●●● patch | view | raw | blame | history
pyramid/scripts/prequest.py
@@ -123,7 +123,7 @@
        setup_logging(app_spec)
    def run(self):
        if not self.args.config_uri and not self.args.path_info:
        if not self.args.config_uri or not self.args.path_info:
            self.out('You must provide at least two arguments')
            return 2
        app_spec = self.args.config_uri
pyramid/scripts/pviews.py
@@ -247,7 +247,7 @@
                self.out("%sview predicates (%s)" % (indent, predicate_text))
    def run(self):
        if not self.args.config_uri and not self.args.url:
        if not self.args.config_uri or not self.args.url:
            self.out('Command requires a config file arg and a url arg')
            return 2
        config_uri = self.args.config_uri