Mercurial > piecrust2
diff piecrust/sources/base.py @ 815:69d16e1afb95
internal: Keep things out of the `PieCrust` class, and other clean-ups.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 11 Jan 2017 09:01:01 -0800 |
parents | aca04e175488 |
children | c30574f0dadc |
line wrap: on
line diff
--- a/piecrust/sources/base.py Wed Dec 28 01:27:02 2016 -0500 +++ b/piecrust/sources/base.py Wed Jan 11 09:01:01 2017 -0800 @@ -1,7 +1,6 @@ import copy import logging from werkzeug.utils import cached_property -from piecrust.configuration import ConfigurationError from piecrust.page import Page @@ -126,6 +125,7 @@ def buildDataProvider(self, page, override): if not self._provider_type: - self._provider_type = self.app.getDataProviderClass(self.data_type) + from piecrust.data.provider import get_data_provider_class + self._provider_type = get_data_provider_class(self.app, + self.data_type) return self._provider_type(self, page, override) -