#11703: Added missing Super calls to 2 widget classes
----------------------------------------+-----------------------------------
Reporter: Rupe | Owner: nobody
Status: reopened | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords: forms widget super
multiple-inheritance
Stage: Ready for checkin | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------+-----------------------------------
Changes (by [email protected]):
* status: closed => reopened
* resolution: fixed =>
Comment:
I am not sure if this is the right place.
I did an svn update and these are the errors I am getting below.
I reverted back to r11490 and it works again.
---------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1538, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1230, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1129, in _execute_target
result = object(arg)
File "/usr/lib/python2.6/dist-
packages/django/core/handlers/modpython.py", line 228, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.6/dist-
packages/django/core/handlers/modpython.py", line 201, in __call__
response = self.get_response(request)
File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py",
line 134, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py",
line 154, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "/usr/lib/python2.6/dist-packages/django/views/debug.py", line 40,
in technical_500_response
html = reporter.get_traceback_html()
File "/usr/lib/python2.6/dist-packages/django/views/debug.py", line 114,
in get_traceback_html
return t.render(c)
File "/usr/lib/python2.6/dist-packages/django/template/__init__.py",
line 178, in render
return self.nodelist.render(context)
File "/usr/lib/python2.6/dist-packages/django/template/__init__.py",
line 779, in render
bits.append(self.render_node(node, context))
File "/usr/lib/python2.6/dist-packages/django/template/debug.py", line
81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering:
object.__init__() takes no parameters
Original Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/django/template/debug.py", line
71, in render_node
result = node.render(context)
File "/usr/lib/python2.6/dist-packages/django/template/debug.py", line
87, in render
output = force_unicode(self.filter_expression.resolve(context))
File "/usr/lib/python2.6/dist-packages/django/template/__init__.py",
line 572, in resolve
new_obj = func(obj, *arg_vals)
File "/usr/lib/python2.6/dist-
packages/django/template/defaultfilters.py", line 687, in date
return format(value, arg)
File "/usr/lib/python2.6/dist-packages/django/utils/dateformat.py", line
269, in format
return df.format(format_string)
File "/usr/lib/python2.6/dist-packages/django/utils/dateformat.py", line
30, in format
pieces.append(force_unicode(getattr(self, piece)()))
File "/usr/lib/python2.6/dist-packages/django/utils/dateformat.py", line
175, in r
return self.format('D, j M Y H:i:s O')
File "/usr/lib/python2.6/dist-packages/django/utils/dateformat.py", line
30, in format
pieces.append(force_unicode(getattr(self, piece)()))
File "/usr/lib/python2.6/dist-packages/django/utils/encoding.py", line
71, in force_unicode
s = unicode(s)
File "/usr/lib/python2.6/dist-packages/django/utils/functional.py", line
201, in __unicode_cast
return self.__func(*self.__args, **self.__kw)
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/__init__.py", line 62, in ugettext
return real_ugettext(message)
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/trans_real.py", line 286, in ugettext
return do_translate(message, 'ugettext')
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/trans_real.py", line 276, in
do_translate
_default = translation(settings.LANGUAGE_CODE)
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/trans_real.py", line 194, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/usr/lib/python2.6/dist-
packages/django/utils/translation/trans_real.py", line 180, in _fetch
app = import_module(appname)
File "/usr/lib/python2.6/dist-packages/django/utils/importlib.py", line
35, in import_module
__import__(name)
File "/usr/lib/python2.6/dist-
packages/django/contrib/admin/__init__.py", line 1, in <module>
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
File "/usr/lib/python2.6/dist-packages/django/contrib/admin/helpers.py",
line 13, in <module>
class ActionForm(forms.Form):
File "/usr/lib/python2.6/dist-packages/django/contrib/admin/helpers.py",
line 14, in ActionForm
action = forms.ChoiceField(label=_('Action:'))
File "/usr/lib/python2.6/dist-packages/django/forms/fields.py", line
630, in __init__
help_text, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/django/forms/fields.py", line 87,
in __init__
widget = widget()
File "/usr/lib/python2.6/dist-packages/django/forms/widgets.py", line
395, in __init__
super(Select, self).__init__(attrs)
File "/usr/lib/python2.6/dist-packages/django/forms/widgets.py", line
142, in __init__
super(Widget, self).__init__(attrs)
TypeError: object.__init__() takes no parameters
--
Ticket URL: <http://code.djangoproject.com/ticket/11703#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---