Anomalie #3342
ferméCrash when adding an OPE : after parcels pannel
0%
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
- response = callback(request, *callback_args, **callback_kwargs)
File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in _wrapped_view
- return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
- return self.dispatch(request, *args, **kwargs)
File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in dispatch
- return super(Wizard, self).dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in dispatch
- response = super(WizardView, self).dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
- return handler(request, *args, **kwargs)
File "/srv/ishtarctest/ishtar/archaeological_operations/wizards.py" in post
- return super(OperationWizard, self).post(*args, **kwargs)
File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in post
- return super(Wizard, self).post(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in post
- return super(NamedUrlWizardView, self).post(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in post
- form = self.get_form(data=self.request.POST, files=self.request.FILES)
File "/srv/ishtarctest/ishtar/archaeological_operations/wizards.py" in get_form
- form = super(OperationWizard, self).get_form(step, data, files)
File "/srv/ishtarctest/ishtar/ishtar_common/wizards.py" in get_form
- 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
- return self.form_liststep
File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in init
- kwargs['data'] = self.rearrange_parcels(kwargs['data'])
File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in rearrange_parcels
- key=self._parcel_sorting)):
File "/srv/ishtarctest/ishtar/archaeological_operations/forms.py" in _parcel_sorting
- public_domain, town, year, section, parcel = key
Exception Type: ValueError at /operation_creation/