[PATCH fresh] SaxOnlyValidator has been renamed to XMLValidator

Nicola Spanti nicola.spanti at logilab.fr
Tue Feb 11 11:37:40 CET 2020


Published. Thanks.

Le 11/02/2020 à 10:10, Philippe Pepiot a écrit :
> # HG changeset patch
> # User Philippe Pepiot <philippe.pepiot at logilab.fr>
> # Date 1581412127 -3600
> #      Tue Feb 11 10:08:47 2020 +0100
> # Node ID 60f15e7bf5f78e7c15135f52736fba70c2b79faa
> # Parent  f711839dc2e21d1c342427611d834b8c292e24af
> # Available At https://hg.logilab.org/review/cubes/fresh
> #              hg pull https://hg.logilab.org/review/cubes/fresh -r 60f15e7bf5f7
> SaxOnlyValidator has been renamed to XMLValidator
> 
> And bw compat has been dropped in cubicweb 3.27
> 
> diff --git a/test/test_fresh.py b/test/test_fresh.py
> --- a/test/test_fresh.py
> +++ b/test/test_fresh.py
> @@ -2,15 +2,15 @@
>   
>   import unittest
>   
> -from cubicweb.devtools.htmlparser import SaxOnlyValidator
> +from cubicweb.devtools.htmlparser import XMLValidator
>   from cubicweb.devtools.testlib import AutomaticWebTest
>   
>   
>   class AutomaticWebTest(AutomaticWebTest):
>       vid_validators = AutomaticWebTest.vid_validators.copy()
>       vid_validators.update({
> -        'accexpense': SaxOnlyValidator,
> -        'accentry': SaxOnlyValidator,
> +        'accexpense': XMLValidator,
> +        'accentry': XMLValidator,
>       })
>   
>   
> 



More information about the cubicweb-devel mailing list