Django

Code

Changeset 3680

Show
Ignore:
Timestamp:
08/29/06 19:54:08 (2 years ago)
Author:
russellm
Message:

Refs #1400 - Reverted r3269. Template variable evalution should follow Python norms.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/__init__.py

    r3666 r3680  
    615615    (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.') 
    616616    """ 
    617     if path == 'False': 
    618         current = False 
    619     elif path == 'True': 
    620         current = True 
    621     elif path[0].isdigit(): 
     617    if path[0].isdigit(): 
    622618        number_type = '.' in path and float or int 
    623619        try: