Project

General

Profile

Actions

Anomalie #3342

closed

Crash when adding an OPE : after parcels pannel

Added by Yann Le Jeune about 8 years ago. Updated about 8 years ago.

Status:
Résolu
Priority:
Haut
Assignee:
Category:
-
Target version:
Start date:
21 October 2016
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:
Moyen

Description

It was a file related OPE


ValueError at /operation_creation/

need more than 4 values to unpack

Request Method: POST

Request URL: http://test.ishtar-archeo.net/operation_creation/

Django Version: 1.4.22

Exception Type: ValueError

Exception Value:

need more than 4 values to unpack

Exception Location: /srv/ishtarctest/ishtar/archaeological_operations/forms.py in _parcel_sorting, line 294

Python Executable: /usr/bin/uwsgi-core

Python Version: 2.7.3

Python Path:

['/srv/ishtarctest/ishtar/',

'.',

'',

'/usr/lib/python2.7',

'/usr/lib/python2.7/plat-linux2',

'/usr/lib/python2.7/lib-tk',

'/usr/lib/python2.7/lib-old',

'/usr/lib/python2.7/lib-dynload',

'/usr/local/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages/PIL',

'/usr/lib/pymodules/python2.7']

Server time: ven, 21 Oct 2016 09:34:10 +0200

Environment:

Request Method: POST

Request URL: http://test.ishtar-archeo.net/operation_creation/

Django Version: 1.4.22

Python Version: 2.7.3

Installed Applications:

['django.contrib.auth',

'django.contrib.admin',

'django.contrib.contenttypes',

'django.contrib.sessions',

'django.contrib.sites',

'django.contrib.gis',

'django.contrib.staticfiles',

'django.contrib.formtools',

'django.contrib.messages',

'django.contrib.humanize',

'south',

'registration',

'ishtar_pdl',

'ishtar_common',

'archaeological_files_pdl',

'archaeological_files',

'archaeological_operations',

'archaeological_context_records',

'archaeological_warehouse',

'archaeological_finds']

Installed Middleware:

['django.middleware.common.CommonMiddleware',

'django.contrib.sessions.middleware.SessionMiddleware',

'django.middleware.csrf.CsrfViewMiddleware',

'django.contrib.auth.middleware.AuthenticationMiddleware',

'django.contrib.messages.middleware.MessageMiddleware',

'django.middleware.locale.LocaleMiddleware']

Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, **callback_kwargs)

File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in _wrapped_view

  1. return view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view

  1. return self.dispatch(request, *args, **kwargs)

File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in dispatch

  1. return super(Wizard, self).dispatch(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in dispatch

  1. response = super(WizardView, self).dispatch(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch

  1. return handler(request, *args, **kwargs)

File "/srv/ishtarctest/ishtar/archaeological_operations/wizards.py" in post

  1. return super(OperationWizard, self).post(*args, **kwargs)

File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in post

  1. return super(Wizard, self).post(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in post

  1. return super(NamedUrlWizardView, self).post(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in post

  1. form = self.get_form(data=self.request.POST, files=self.request.FILES)

File "/srv/ishtarctest/ishtar/archaeological_operations/wizards.py" in get_form

  1. form = super(OperationWizard, self).get_form(step, data, files)

File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in get_form

  1. form = super(Wizard, self).get_form(step, data, files)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in get_form

  1. return self.form_liststep

File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in init

  1. kwargs['data'] = self.rearrange_parcels(kwargs['data'])

File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in rearrange_parcels

  1. key=self._parcel_sorting)):

File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in _parcel_sorting

  1. public_domain, town, year, section, parcel = key

Exception Type: ValueError at /operation_creation/

Actions #1

Updated by Étienne Loks about 8 years ago

  • Status changed from Nouveau to Résolu
Actions

Also available in: Atom PDF