diff piecrust/commands/builtin/baking.py @ 711:ab5c6a8ae90a

bake: Replace hard-coded taxonomy support with "generator" system. * Taxonomies are now implemented one or more `TaxonomyGenerator`s. * A `BlogArchivesGenerator` stub is there but non-functional.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:52:47 -0700
parents 066d6156525c
children 78de21447e4e
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py	Thu May 26 19:46:28 2016 -0700
+++ b/piecrust/commands/builtin/baking.py	Thu May 26 19:52:47 2016 -0700
@@ -274,12 +274,8 @@
             rel_path = os.path.relpath(entry.path, ctx.app.root_dir)
             logging.info("   path:      %s" % rel_path)
             logging.info("   source:    %s" % entry.source_name)
-            if entry.taxonomy_info:
-                ti = entry.taxonomy_info
-                logging.info("   taxonomy:  %s = %s (in %s)" %
-                             (ti.taxonomy_name, ti.term, ti.source_name))
-            else:
-                logging.info("   taxonomy:  <none>")
+            if entry.extra_key:
+                logging.info("   extra key: %s" % entry.extra_key)
             logging.info("   flags:     %s" % _join(flags))
             logging.info("   config:    %s" % entry.config)
 
@@ -326,11 +322,9 @@
                     logging.info("       used pagination: %s", pgn_info)
                     logging.info("       used assets: %s",
                                  'yes' if ri.used_assets else 'no')
-                    logging.info("       used terms: %s" %
-                                 _join(
-                                        ['%s=%s (%s)' % (tn, t, sn)
-                                         for sn, tn, t in
-                                         ri.used_taxonomy_terms]))
+                    logging.info("       other info:")
+                    for k, v in ri._custom_info.items():
+                        logging.info("       - %s: %s" % (k, v))
 
                 if sub.errors:
                     logging.error("   errors: %s" % sub.errors)