Projet

Général

Profil

Bug #10773

AttributeError: 'NoneType' object has no attribute 'url_name')

Ajouté par Frédéric Péters il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
29 avril 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'url_name''

Stack trace (most recent call first):
  File "/usr/lib/pymodules/python2.7/extra-wcs-au-quotidien/modules/root.py", line 848, in _q_traverse
   846                     uri_rest = uri_rest[len(base_url):]
   847                 if f.category_id:
>  848                     return redirect('%s%s/%s' % (base_url, f.category.url_name, uri_rest))
   849
   850             raise e

  locals:
     uri_rest = 'test-coffre-fort-1-copie/'
     e = TraversalError()
     f = <FormDef 'test coffre fort 1 (copie)' id:267>
     self = <modules.root.AlternateRootDirectory object at 0x3fc2b10>
     base_url = '/'
     path = ['test-coffre-fort-1-copie', '']
     response = <qommon.http_response.HTTPResponse instance at 0x7fae4ce8ad40>

Fichiers

Révisions associées

Révision d71f475f (diff)
Ajouté par Frédéric Péters il y a presque 8 ans

misc: protect against removed categories (#10773)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 8 ans

#2

Mis à jour par Thomas Noël il y a presque 8 ans

auquo, ça faisait longtemps.

Ack.

#3

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit d71f475f7f6d5b8234abc47cfeff2027c7649f11
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 29 12:42:52 2016 +0200

    misc: protect against removed categories (#10773)
#4

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Version cible mis à v1.42
#5

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF