Development #63694
fonctionner avec bleach 5
0%
Description
J'ai posé une limite <5 dans le setup.py en attendant,
Exception: type = '<class 'TypeError'>', value = 'Cleaner.__init__() got an unexpected keyword argument 'styles'' Stack trace (most recent call first): File "/home/fred/src/eo/wcs/wcs/qommon/form.py", line 2289, in _parse 2287 TextWidget._parse(self, request, use_validation_function=False) 2288 if self.value: > 2289 cleaner = Cleaner( 2290 tags=self.ALL_TAGS, 2291 attributes=self.ALL_ATTRS, locals: request = <wcs.compat.CompatHTTPRequest object at 0x7fda4bb747c0> self = <WysiwygTextWidget at 7fda4bb609a0: description>
Révisions associées
misc: add support for bleach 5 (#63694)
build: keep on testing against bleach 4 for now (#63694)
Historique
Mis à jour par Frédéric Péters il y a environ 2 ans
https://github.com/mozilla/bleach/blob/main/CHANGES
* CSS sanitization in style tags is completely different now. If you're using Bleach ``clean`` to sanitize css in style tags, you'll need to update your code and you'll need to install the ``css`` extras:: pip install 'bleach[css]' See `the documentation on sanitizing CSS for how to do it <https://bleach.readthedocs.io/en/latest/clean.html#sanitizing-css>`_. (#633)
Mis à jour par Frédéric Péters il y a environ un an
Depuis, il y a eu https://bluesock.org/~willkg/blog/dev/bleach_6_0_0_deprecation.html qui annonce l'abandon.
Dans les alternatives discutées, il y a https://github.com/messense/nh3 (mais pas packagé, et avec une dépendance rust ça n'est pas immédiat, et ça ne fait pas tout).
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Nouveau à En cours
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/863
- Titre : WIP: fonctionner avec bleach 5 (#63694)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/863/files
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Solution proposée à Solution validée
Corentin Sechet (csechet) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/863
- Titre : fonctionner avec bleach 5 (#63694)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/863/files
Mis à jour par Transition automatique il y a 5 mois
- Statut changé de Résolu (à déployer) à Solution déployée
misc: limit bleach version
Support for bleach 5 will come with #63694.