bkad/kimpine — Issue #32: Error viewing patch
Author: mrj0
Created: 2011-11-16 18:48:25+00:00
State: open

This changeset was all new files, I got this error about the 4-5th time I hit 'j' to view next.

Environment:

Request Method: GET
Request URL: http://code/6/diff/6/hardware_xfer/util/__init__.py?context=10&column_width=80

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.staticfiles',
'codereview',
'south',
'debug_toolbar']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'codereview.middleware.DisableCSRFMiddleware',
'django.middleware.doc.XViewMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')

Traceback:
File "/opt/envs/kimpine/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/kimpine/codereview/views.py" in issue_wrapper
602. request.issue = issue
File "/opt/kimpine/codereview/views.py" in patchset_wrapper
681. request.patchset = patchset
File "/opt/kimpine/codereview/views.py" in patch_wrapper
730. request.patch = patch
File "/opt/kimpine/codereview/views.py" in diff
2064. try:
File "/opt/kimpine/codereview/views.py" in _get_diff_table_rows
2094. content = request.patch.get_content()
File "/opt/kimpine/codereview/models.py" in get_patched_content
437. patched_content.save(filename=self.filename)
File "/opt/kimpine/codereview/models.py" in save
250. super(Content, self).save(*args, **kwargs)

Exception Type: TypeError at /6/diff/6/hardware_xfer/util/__init__.py
Exception Value: save() got an unexpected keyword argument 'filename'