comparison piecrust/sources/base.py @ 555:daf8df5ade7d

serve: Refactor the server to make pieces usable by the debugging middleware.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 12 Aug 2015 23:04:46 -0700
parents 32c7c2d219d2
children ff404adfcf45
comparison
equal deleted inserted replaced
554:155c7e20414f 555:daf8df5ade7d
20 20
21 21
22 def build_pages(app, factories): 22 def build_pages(app, factories):
23 for f in factories: 23 for f in factories:
24 yield f.buildPage() 24 yield f.buildPage()
25
26
27 class SourceNotFoundError(Exception):
28 pass
25 29
26 30
27 class InvalidFileSystemEndpointError(Exception): 31 class InvalidFileSystemEndpointError(Exception):
28 def __init__(self, source_name, fs_endpoint): 32 def __init__(self, source_name, fs_endpoint):
29 super(InvalidFileSystemEndpointError, self).__init__( 33 super(InvalidFileSystemEndpointError, self).__init__(