Mercurial > piecrust2
comparison piecrust/admin/views/create.py @ 852:4850f8c21b6e
core: Start of the big refactor for PieCrust 3.0.
* Everything is a `ContentSource`, including assets directories.
* Most content sources are subclasses of the base file-system source.
* A source is processed by a "pipeline", and there are 2 built-in pipelines,
one for assets and one for pages. The asset pipeline is vaguely functional,
but the page pipeline is completely broken right now.
* Rewrite the baking process as just running appropriate pipelines on each
content item. This should allow for better parallelization.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 17 May 2017 00:11:48 -0700 |
parents | 82509bce94ca |
children | dcdec4b951a1 |
comparison
equal
deleted
inserted
replaced
851:2c7e57d80bba | 852:4850f8c21b6e |
---|---|
3 import logging | 3 import logging |
4 from flask import ( | 4 from flask import ( |
5 g, request, abort, render_template, url_for, redirect, flash) | 5 g, request, abort, render_template, url_for, redirect, flash) |
6 from flask.ext.login import login_required | 6 from flask.ext.login import login_required |
7 from piecrust.sources.interfaces import IInteractiveSource | 7 from piecrust.sources.interfaces import IInteractiveSource |
8 from piecrust.sources.base import MODE_CREATING | |
9 from piecrust.routing import create_route_metadata | 8 from piecrust.routing import create_route_metadata |
10 from ..blueprint import foodtruck_bp | 9 from ..blueprint import foodtruck_bp |
11 from ..views import with_menu_context | 10 from ..views import with_menu_context |
12 | 11 |
13 | 12 |