Project

General

Profile

Tâche #19554

Scénario #19476: Traitements express EWT

Un nom de famille qui n'existe pas fait planter le chargement de la configuration dans les extras

Added by Gwenael Remond over 4 years ago. Updated over 4 years ago.

Status:
Ne sera pas résolu
Priority:
Normal
Assigned To:
Gwenael Remond
Start date:
02/08/2017
Due date:
% Done:

100%

Spent time:
Remaining (hours):

Description

Si je met :

    <help>
        <variable name="majlist.blabla.filename">sdfsdfsdf</variable>
    </help>

Et le nom de famille "blabla" n'existe pas.

J'ai l'erreur suivante :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 753, in creole_loader
    eolobj.space_visitor()
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 438, in space_visitor
    SpaceAnnotator(self.space, self.paths, self)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 791, in __init__
    self._parse_object_space(space, None)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 883, in _parse_object_space
    self._parse_subobject_space(name, node_name, space, subspace, parent_path, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 908, in _parse_subobject_space
    self._parse_subobject_space(subname, name, space, subspace, None, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 905, in _parse_subobject_space
    self._parse_object_space(subspace, current_namespace, name, parent_path, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 883, in _parse_object_space
    self._parse_subobject_space(name, node_name, space, subspace, parent_path, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 910, in _parse_subobject_space
    self.absolute_paths_annotation(name, node_name, parent, space, parent_path, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 1048, in absolute_paths_annotation
    value_name = parent_path + '.' + value
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'


Related issues

Copied from EWT - Tâche #19543: Il n'est pas possible d'ajouter des aides dans les extras Fermé 02/08/2017

History

#1 Updated by Gwenael Remond over 4 years ago

  • Copied from Tâche #19543: Il n'est pas possible d'ajouter des aides dans les extras added

#2 Updated by Gwenael Remond over 4 years ago

  • Assigned To set to Gwenael Remond

#3 Updated by Gwenael Remond over 4 years ago

  • Status changed from Nouveau to En cours

#4 Updated by Gwenael Remond over 4 years ago

  • Status changed from En cours to Ne sera pas résolu
  • % Done changed from 0 to 100

Dans le cas d'une famille ou d'une variable inexistance, exemple :

    <help>
        <variable name="backuponce.sauvegarde.backuptypetiti">sdfsdfsdf</variable>
    </help>

on a maintenant une levée d'exception propore :

backuponce.sauvegarde.backuptypetiti
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    c = creole_loader(load_extra=True)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 753, in creole_loader
    eolobj.space_visitor()
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 438, in space_visitor
    SpaceAnnotator(self.space, self.paths, self)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 791, in __init__
    self._parse_object_space(space, None)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 883, in _parse_object_space
    self._parse_subobject_space(name, node_name, space, subspace, parent_path, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 911, in _parse_subobject_space
    self._parse_subobject_space(subname, name, space, subspace, None, namespace, ishelp)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 896, in _parse_subobject_space
    current_namespace = self.paths.get_variable_namespace(keys[idx])
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 590, in get_variable_namespace
    return self._get_variable(name)['namespace']
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 628, in _get_variable
    raise CreoleDictConsistencyError(_('unknown option {}').format(name).encode('utf8'))
creole.error.CreoleDictConsistencyError: option backuponce.sauvegarde.backuptypetiti inconnue

Also available in: Atom PDF