Browse files

Changed internal variable names in django.core.template.loaders.eggs …

…to be consistent with filesystem

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Oct 17, 2005
1 parent f808d1b commit dc3f6e41137a6b138d777b1449790753e825d5d2
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/core/template/loaders/
@@ -8,18 +8,18 @@
from django.core.template import TemplateDoesNotExist
from django.conf.settings import INSTALLED_APPS, TEMPLATE_FILE_EXTENSION
-def load_template_source(name, dirs=None):
+def load_template_source(template_name, template_dirs=None):
Loads templates from Python eggs via pkg_resource.resource_string.
- For every installed app, it tries to get the resource (app, name).
+ For every installed app, it tries to get the resource (app, template_name).
if resource_string is not None:
- pkg_name = 'templates/' + name + TEMPLATE_FILE_EXTENSION
+ pkg_name = 'templates/' + template_name + TEMPLATE_FILE_EXTENSION
for app in INSTALLED_APPS:
return resource_string(app, pkg_name)
- raise TemplateDoesNotExist, name
+ raise TemplateDoesNotExist, template_name
load_template_source.is_usable = resource_string is not None

0 comments on commit dc3f6e4

Please sign in to comment.