Mercurial > piecrust2
comparison piecrust/commands/builtin/info.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 | a65f04ddbea2 |
| children | dafb7d76c2ba |
comparison
equal
deleted
inserted
replaced
| 710:e85f29b28b84 | 711:ab5c6a8ae90a |
|---|---|
| 79 pass | 79 pass |
| 80 | 80 |
| 81 def run(self, ctx): | 81 def run(self, ctx): |
| 82 for route in ctx.app.routes: | 82 for route in ctx.app.routes: |
| 83 logger.info("%s:" % route.uri_pattern) | 83 logger.info("%s:" % route.uri_pattern) |
| 84 logger.info(" source: %s" % route.source_name) | 84 logger.info(" source: %s" % (route.source_name or '')) |
| 85 logger.info(" taxonomy: %s" % (route.taxonomy_name or '')) | 85 logger.info(" generator: %s" % (route.generator_name or '')) |
| 86 logger.info(" regex: %s" % route.uri_re.pattern) | 86 logger.info(" regex: %s" % route.uri_re.pattern) |
| 87 | 87 |
| 88 | 88 |
| 89 class ShowPathsCommand(ChefCommand): | 89 class ShowPathsCommand(ChefCommand): |
| 90 def __init__(self): | 90 def __init__(self): |
