﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3558	rev 4558 breaks in Python 2.3	xian@…	Adrian Holovaty	"rev 4558 breaks in Python 2.3 because it tries to write to __name__ which wasn't writable until 2.4. This is a similar problem to what was this one which showed up in 3461
http://groups.google.com/group/django-users/browse_frm/thread/5b4e6727ed2c69ce/73e5ab44c5f08da0%2373e5ab44c5f08da0


{{{
Traceback (most recent call last):
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/core/servers/basehttp.py"", line 272, in run
    self.result = application(self.environ, self.start_response)
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/core/servers/basehttp.py"", line 614, in __call__
    return self.application(environ, start_response)
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/core/handlers/wsgi.py"", line 184, in __call__
    self.load_middleware()
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/core/handlers/base.py"", line 29, in load_middleware
    mod = __import__(mw_module, {}, {}, [''])
  File ""/Users/xian/Sites/malibu/malibu/../malibu/pages/middleware.py"", line 1, in ?
    from malibu.pages.views import show_page
  File ""/Users/xian/Sites/malibu/malibu/../malibu/pages/views.py"", line 1, in ?
    from django.shortcuts import render_to_response, get_object_or_404
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/shortcuts/__init__.py"", line 5, in ?
    from django.template import loader
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/template/__init__.py"", line 915, in ?
    add_to_builtins('django.template.defaultfilters')
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/template/__init__.py"", line 912, in add_to_builtins
    builtins.append(get_library(module_name))
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/template/__init__.py"", line 901, in get_library
    mod = __import__(module_name, {}, {}, [''])
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/template/defaultfilters.py"", line 55, in ?
    addslashes = stringfilter(addslashes)
  File ""/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/django/template/defaultfilters.py"", line 40, in stringfilter
    _dec.__name__ = func.__name__
TypeError: readonly attribute
}}}

I haven't had time to look into fixing this or whip up a patch, but I'm guessing whatever fixed the 3461 will work here as well."		closed	Template system	dev		fixed	template filters		Unreviewed	0	0	0	0	0	0
