Project

General

Profile

Bug #9020

Erreur lors de la création d'une datasource sur https://eservices-montpellier.dev.entrouvert.org/backoffice/settings/data-sources/new

Added by Benjamin Dauvergne almost 8 years ago. Updated almost 8 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
18 November 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Arrivé au moment de valider la chose.

Exception:
  type = '<type 'exceptions.UnboundLocalError'>', value = 'local variable 'slug' referenced before assignment'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/admin/data_sources.py", line 65, in submit_form
    63             if name == nds.name:
    64                 form.get_widget('name').set_error(_('This name is already used.'))
>   65             if slug == nds.slug:
    66                 form.get_widget('slug').set_error(_('This value is already used.'))
    67         if form.has_errors():

  locals: 
     nds = <NamedDataSource 'exceptions Castelnau' id:2>
     name = 'Communes'
     form = <qommon.form.Form object at 0x43911d0>
     self = <wcs.admin.data_sources.NamedDataSourceUI object at 0x444ded0>

  File "/usr/lib/python2.7/dist-packages/wcs/admin/data_sources.py", line 197, in new
   195                 datasource_ui.submit_form(form)
   196             except ValueError:
>  197                 pass
   198             else:
   199                 return redirect('.')

  locals: 
     self = <wcs.admin.data_sources.NamedDataSourcesDirectory object at 0x3356550>
     datasource_ui = <wcs.admin.data_sources.NamedDataSourceUI object at 0x444ded0>
     form = <qommon.form.Form object at 0x43911d0>
...

Files

Associated revisions

Revision 8c178cf6 (diff)
Added by Frédéric Péters almost 8 years ago

admin: fix creation of non-first named data source (#9020)

History

#1

Updated by Frédéric Péters almost 8 years ago

  • Assignee set to Frédéric Péters
#2

Updated by Frédéric Péters almost 8 years ago

#3

Updated by Frédéric Péters almost 8 years ago

  • Description updated (diff)
#4

Updated by Benjamin Dauvergne almost 8 years ago

Ack.

#5

Updated by Frédéric Péters almost 8 years ago

  • Status changed from En cours to Résolu (à déployer)
commit 8c178cf67d4399522cd572b1dcdf95707ac39fcf
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Nov 18 13:58:05 2015 +0100

    admin: fix creation of non-first named data source (#9020)
#6

Updated by Frédéric Péters almost 8 years ago

  • Target version set to v1.24
#7

Updated by Frédéric Péters almost 8 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF