diff piecrust/routing.py @ 734:3f01f63b7247

routing: Correctly call the underlying route template function from a merged one.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 01 Jun 2016 22:19:01 -0700
parents 8c3c2b949b82
children f6f9a284a5f3
line wrap: on
line diff
--- a/piecrust/routing.py	Wed Jun 01 22:11:51 2016 -0700
+++ b/piecrust/routing.py	Wed Jun 01 22:19:01 2016 -0700
@@ -361,7 +361,7 @@
             f_args = args[:-1]
             for r, f in self._funcs:
                 if r.source_name == args[-1]:
-                    return f(f_args, **kwargs)
+                    return f(*f_args, **kwargs)
             raise Exception("No such source: %s" % args[-1])
 
         raise Exception("Incorrect number of arguments for route function. "