X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0d51e8dc2b15ca84b8979b94a3224b4a33f7f25e..ad61c0ead793098e8c9cbec326cdd3a4163f25ba:/__init__.py?ds=inline diff --git a/__init__.py b/__init__.py index 8ad7212..ba78dda 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,15 @@ -from models 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