Mercurial > piecrust2
diff piecrust/importing/piecrust.py @ 297:2823ea40cfac
import: Put importer metadata on the class, and allow return values.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 10 Mar 2015 08:34:45 -0700 |
parents | 46842f71f31f |
children | 233234e02816 |
line wrap: on
line diff
--- a/piecrust/importing/piecrust.py Sun Mar 08 23:00:01 2015 -0700 +++ b/piecrust/importing/piecrust.py Tue Mar 10 08:34:45 2015 -0700 @@ -11,11 +11,9 @@ class PieCrust1Importer(FileWalkingImporter): - def __init__(self): - super(PieCrust1Importer, self).__init__() - self.name = 'piecrust1' - self.description = "Imports content from a PieCrust 1 website." - self.requires_website = False + name = 'piecrust1' + description = "Imports content from a PieCrust 1 website." + requires_website = False def setupParser(self, parser, app): super(PieCrust1Importer, self).setupParser(parser, app)