Author: russellm
Date: 2006-08-29 19:54:08 -0500 (Tue, 29 Aug 2006)
New Revision: 3680
Modified:
django/trunk/django/template/__init__.py
Log:
Refs #1400 - Reverted r3269. Template variable evalution should follow Python
norms.
Modified: django/trunk/django/template/__init__.py
===================================================================
--- django/trunk/django/template/__init__.py 2006-08-29 21:37:20 UTC (rev
3679)
+++ django/trunk/django/template/__init__.py 2006-08-30 00:54:08 UTC (rev
3680)
@@ -614,11 +614,7 @@
(The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.')
"""
- if path == 'False':
- current = False
- elif path == 'True':
- current = True
- elif path[0].isdigit():
+ if path[0].isdigit():
number_type = '.' in path and float or int
try:
current = number_type(path)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---