This site is an archive; learn more about 8 years of OpenHatch.

[Devel] [Kaboom at OH] Error (EXTERNAL IP): /account/edit/photo/do

mr_website at linode.openhatch.org mr_website at linode.openhatch.org
Sat Jan 2 22:55:32 UTC 2010


Traceback (most recent call last):

  File "/home/deploy/milestone-a.buildout/parts/production/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/deploy/milestone-a.buildout/parts/production/django/contrib/auth/decorators.py", line 78, in __call__
    return self.view_func(request, *args, **kwargs)

  File "/home/deploy/milestone-a.buildout/mysite/account/views.py", line 92, in edit_photo_do
    if form.is_valid():

  File "/home/deploy/milestone-a.buildout/parts/production/django/forms/forms.py", line 120, in is_valid
    return self.is_bound and not bool(self.errors)

  File "/home/deploy/milestone-a.buildout/parts/production/django/forms/forms.py", line 111, in _get_errors
    self.full_clean()

  File "/home/deploy/milestone-a.buildout/parts/production/django/forms/forms.py", line 243, in full_clean
    value = getattr(self, 'clean_%s' % name)()

  File "/home/deploy/milestone-a.buildout/mysite/account/forms.py", line 100, in clean_photo
    new_image_fd, old.field_name, old.name,

AttributeError: 'TemporaryUploadedFile' object has no attribute 'field_name'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'openid_provider': 'openid', 'sessionid': 'd8b0edcccfa5e490fc5b4e11a17be4e4'},
META:{'CONTENT_LENGTH': '3562045',
 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------1112227511931',
 'DOCUMENT_ROOT': '/var/www/',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': '1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'openid_provider=openid; sessionid=d8b0edcccfa5e490fc5b4e11a17be4e4',
 'HTTP_HOST': 'openhatch.org',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_REFERER': 'https://openhatch.org/account/edit/photo/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.5) Gecko/20091207 Firefox/3.5.5',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/account/edit/photo/do',
 'PATH_TRANSLATED': '/home/deploy/milestone-a.buildout/bin/production.wsgi/account/edit/photo/do',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '98.140.245.86',
 'REMOTE_PORT': '44423',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/account/edit/photo/do',
 'SCRIPT_FILENAME': '/home/deploy/milestone-a.buildout/bin/production.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '74.207.229.254',
 'SERVER_ADMIN': 'webmaster at localhost',
 'SERVER_NAME': 'openhatch.org',
 'SERVER_PORT': '443',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) PHP/5.2.11-1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.4 Server at openhatch.org Port 443</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) PHP/5.2.11-1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.4',
 'mod_wsgi.application_group': 'openhatch.org|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '443',
 'mod_wsgi.process_group': 'live',
 'mod_wsgi.reload_mechanism': '1',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (2, 5),
 'wsgi.errors': <mod_wsgi.Log object at 0xa37bf08>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa64ef08>,
 'wsgi.input': <mod_wsgi.Input object at 0x9ecef20>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 0)}>


More information about the Devel mailing list