Project

General

Profile

Bug #36774

export CSV des rôles cassé

Added by Valentin Deniaud about 5 years ago. Updated about 5 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
-
Start date:
08 October 2019
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

/manage/roles/export/csv/

Traceback:

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/home/vdeniaud/src/authentic/src/authentic2/manager/views.py" in dispatch
  144.         return super(PermissionMixin, self).dispatch(request, *args, **kwargs)

File "/home/vdeniaud/src/authentic/src/authentic2/manager/views.py" in dispatch
  196.         return super(SearchFormMixin, self).dispatch(request, *args, **kwargs)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/home/vdeniaud/src/authentic/src/authentic2/manager/role_views.py" in get
  119.         return super(RolesExportView, self).get(request, *args, **kwargs)

File "/home/vdeniaud/src/authentic/src/authentic2/manager/views.py" in get
  382.         content = getattr(self.get_dataset(), export_format)

File "/home/vdeniaud/src/authentic/src/authentic2/manager/views.py" in get_dataset
  373.         return self.get_resource().export(self.get_data())

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/import_export/resources.py" in export
  708.             data.append(self.export_resource(obj))

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/import_export/resources.py" in export_resource
  679.         return [self.export_field(field, obj) for field in self.get_export_fields()]

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/import_export/resources.py" in export_field
  673.         return field.export(obj)

File "/home/vdeniaud/envs/publik-env/local/lib/python2.7/site-packages/import_export/fields.py" in export
  130.         return self.widget.render(value, obj)

Exception Type: TypeError at /manage/roles/export/csv/
Exception Value: render() takes exactly 2 arguments (3 given)

Cette fonctionnalité n'est vraisemblablement pas très utilisée, et on me souffle dans l'oreillette qu'elle ne serait pas utile tout court (export sans import). Donc, à fixer ou à virer ?


Files

Associated revisions

Revision 5b8b62a1 (diff)
Added by Paul Marillonnet about 5 years ago

set upper bound on django-import-export dependency version (#36774)

  • so as to maintain the role CSV export feature

History

#1

Updated by Paul Marillonnet about 5 years ago

Il faut django-import-export < 0.5

#2

Updated by Paul Marillonnet about 5 years ago

  • Status changed from Nouveau to En cours
  • Assignee set to Paul Marillonnet
#3

Updated by Paul Marillonnet about 5 years ago

#4

Updated by Paul Marillonnet about 5 years ago

  • Status changed from Solution proposée to En cours

Ce serait bien d'avoir un test de cette fonctionnalité, quand même.

#6

Updated by Benjamin Dauvergne about 5 years ago

  • Status changed from Solution proposée to Solution validée
#7

Updated by Paul Marillonnet about 5 years ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 5b8b62a19fc09e6110f7bbb39b92ce04ac176d19
Author: Paul Marillonnet <pmarillonnet@entrouvert.com>
Date:   Tue Oct 8 12:12:06 2019 +0200

    set upper bound on django-import-export dependency version (#36774)

        * so as to maintain the role CSV export feature
#8

Updated by Frédéric Péters about 5 years ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF