Projet

Général

Profil

Bug #39914

portfolio, 'map' object is not subscriptable

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
14 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'TypeError'>', value = ''map' object is not subscriptable'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/portfolio.py", line 134, in pick
   132             scheme, netloc, path, qs, frag = urlparse.urlsplit(url)
   133             path = map(None, path.split('/'))
>  134             name = urllib.unquote(path[-1])
   135             from .qommon.form import PicklableUpload
   136             download = PicklableUpload(name, content_type='application/pdf')

Fichiers

Révisions associées

Révision 0a38132d (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

remove obsolete map(None...) usage (#39914)

Révision 4453cdcf (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

remove obsolete map(None...) usage (#39914)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

Pas la moindre idée du pourquoi de cette construction, l'origine est #6651. (et help(map) "If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).").

#2

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Résolu (à déployer)
commit 4453cdcf754528009d47433f598bbd008ad4ad89
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 14 22:56:21 2020 +0100

    remove obsolete map(None...) usage (#39914)

#3

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF