X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/4b094dbc60c3853814c2523d5772e4cf2884a073..252fcb23a8b86b88db639ef2c3bf5dd9c0c2f3ae:/__init__.py diff --git a/__init__.py b/__init__.py index 52956f3..ba78dda 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,15 @@ -from philo.models.pages import Template +from philo.loaders.database import Loader -load_template_source = Template.loader +_loader = Loader() + + +def load_template_source(template_name, template_dirs=None): + # For backwards compatibility + import warnings + warnings.warn( + "'philo.load_template_source' is deprecated; use 'philo.loaders.database.Loader' instead.", + PendingDeprecationWarning + ) + return _loader.load_template_source(template_name, template_dirs) +load_template_source.is_usable = True