Projet

Général

Profil

Actions

Anomalie #1184

fermé

OPE export : simple export not working whereas complete works

Ajouté par Yann Le Jeune il y a presque 12 ans. Mis à jour il y a plus de 11 ans.

Statut:
Résolu
Priorité:
Haut
Assigné à:
Catégorie:
-
Version cible:
Début:
13 mars 2013
Echéance:
% réalisé:

0%

Temps estimé:
Élément(s):
Difficulté:

Description

UnboundLocalError at /get-operation/csv

local variable 'lbl' referenced before assignment

Request Method: GET

Request URL: http://192.168.100.204/get-operation/csv

Django Version: 1.4.5

Exception Type: UnboundLocalError

Exception Value:

local variable 'lbl' referenced before assignment

Exception Location: /srv/ishtar/archaeological_operations/models.py in year_index, line 166

Python Executable: /usr/bin/python

Python Version: 2.7.3

Python Path:

['/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',

'/srv/ishtar/',

'/usr/local/lib/',

'/usr/local/lib/']

Server time: mer, 13 Mar 2013 22:29:35 +0100

Traceback Switch to copy-and-paste view

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


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


    ...

▶ Local vars

/srv/ishtar/ishtar_common/views.py in func


                                new_vals.append(getattr(val, ky))


    ...

▶ Local vars

/srv/ishtar/archaeological_operations/models.py in year_index


            lbl = u"%d-%s%s" % (self.year, (3-len(lbl))*"0", lbl)


    ...

▶ Local vars 
Actions

Formats disponibles : Atom PDF