Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…to be consistent with filesystem

git-svn-id: http://code.djangoproject.com/svn/django/trunk@889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dc3f6e41137a6b138d777b1449790753e825d5d2 1 parent f808d1b
Adrian Holovaty authored October 17, 2005

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  django/core/template/loaders/eggs.py
8  django/core/template/loaders/eggs.py
@@ -8,18 +8,18 @@
8 8
 from django.core.template import TemplateDoesNotExist
9 9
 from django.conf.settings import INSTALLED_APPS, TEMPLATE_FILE_EXTENSION
10 10
 
11  
-def load_template_source(name, dirs=None):
  11
+def load_template_source(template_name, template_dirs=None):
12 12
     """
13 13
     Loads templates from Python eggs via pkg_resource.resource_string.
14 14
 
15  
-    For every installed app, it tries to get the resource (app, name).
  15
+    For every installed app, it tries to get the resource (app, template_name).
16 16
     """
17 17
     if resource_string is not None:
18  
-        pkg_name = 'templates/' + name + TEMPLATE_FILE_EXTENSION
  18
+        pkg_name = 'templates/' + template_name + TEMPLATE_FILE_EXTENSION
19 19
         for app in INSTALLED_APPS:
20 20
             try:
21 21
                 return resource_string(app, pkg_name)
22 22
             except:
23 23
                 pass
24  
-    raise TemplateDoesNotExist, name
  24
+    raise TemplateDoesNotExist, template_name
25 25
 load_template_source.is_usable = resource_string is not None

0 notes on commit dc3f6e4

Please sign in to comment.
Something went wrong with that request. Please try again.