From 26d135bae9aa1b24774a76053b22e9202e0421bb Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 6 Jul 2011 02:28:09 -0500 Subject: Fixed a small bug in pviews initialization. --- pyramid/paster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/paster.py b/pyramid/paster.py index 9683da043..2e732bce4 100644 --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -485,7 +485,7 @@ class PViewsCommand(PCommand): self.out("%sview predicates (%s)" % (indent, predicate_text)) def command(self): - app_spec, url = self.args[0] + app_spec, url = self.args if not url.startswith('/'): url = '/%s' % url app = self.get_app(app_spec, loadapp=self.loadapp[0]) -- cgit v1.2.3