diff foodtruck/views/create.py @ 770:a7726e4862c4

admin: Fix API changes, don't crash the dashboard on non-binary WIP files. Treat new/edited files that have no `auto_format` supported extension as "miscellaneous" files, which are shown separately on the dashboard.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 02 Jul 2016 01:30:51 -0700
parents 14c51f5accc9
children 3885421c29a3
line wrap: on
line diff
--- a/foodtruck/views/create.py	Sat Jul 02 01:28:29 2016 -0700
+++ b/foodtruck/views/create.py	Sat Jul 02 01:30:51 2016 -0700
@@ -45,8 +45,7 @@
                 fp.write('')
             flash("%s was created." % os.path.relpath(fac.path, site.root_dir))
 
-            route = site.getRoute(source.name, fac.metadata,
-                                  skip_taxonomies=True)
+            route = site.getSourceRoute(source.name, fac.metadata)
             if route is None:
                 logger.error("Can't find route for page: %s" % fac.path)
                 abort(500)