Mercurial > piecrust2
diff piecrust/importing/base.py @ 63:28958565a17b
In-place upgrade for PieCrust 1 sites.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 28 Aug 2014 16:48:31 -0700 |
parents | 52e4d9a1f917 |
children | 2823ea40cfac |
line wrap: on
line diff
--- a/piecrust/importing/base.py Wed Aug 27 17:14:44 2014 -0700 +++ b/piecrust/importing/base.py Thu Aug 28 16:48:31 2014 -0700 @@ -12,6 +12,7 @@ def __init__(self): self.name = None self.description = None + self.requires_website = True def setupParser(self, parser, app): raise NotImplementedError() @@ -20,7 +21,7 @@ raise NotImplementedError() def checkedImportWebsite(self, ctx): - if ctx.app.root_dir is None: + if ctx.app.root_dir is None and self.requires_website: raise SiteNotFoundError() self.importWebsite(ctx.app, ctx.args) return 0