Django

Code

Changeset 889

Show
Ignore:
Timestamp:
10/16/05 20:53:22 (3 years ago)
Author:
adrian
Message:

Changed internal variable names in django.core.template.loaders.eggs to be consistent with filesystem

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/template/loaders/eggs.py

    r870 r889  
    99from django.conf.settings import INSTALLED_APPS, TEMPLATE_FILE_EXTENSION 
    1010 
    11 def load_template_source(name, dirs=None): 
     11def load_template_source(template_name, template_dirs=None): 
    1212    """ 
    1313    Loads templates from Python eggs via pkg_resource.resource_string. 
    1414 
    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). 
    1616    """ 
    1717    if resource_string is not None: 
    18         pkg_name = 'templates/' + name + TEMPLATE_FILE_EXTENSION 
     18        pkg_name = 'templates/' + template_name + TEMPLATE_FILE_EXTENSION 
    1919        for app in INSTALLED_APPS: 
    2020            try: 
     
    2222            except: 
    2323                pass 
    24     raise TemplateDoesNotExist, name 
     24    raise TemplateDoesNotExist, template_name 
    2525load_template_source.is_usable = resource_string is not None