[zope2-tracker] [Bug 246983] Re: Page Template: TALES string expr. unicode err.

Tres Seaver tseaver at palladion.com
Tue Jan 5 13:29:29 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

LeoRochael wrote:
> This other patch includes the test in the patch above plus more tests
> and a solution to this issue. The solution is a 15 line StringExpr
> subclass that conditionally coerces the values to unicode using the
> UnicodeConflictResolver.
> 
> Differently than I proposed, this patch is completely contained in
> Zope2, and does not touch zope.tales. I'll probably start a discussion
> later on zope-dev about the fact that the behaviour of string
> expressions with Unicode strings is not completely defined in that
> package.
> 
> If that discussion proves fruitful, the 15 line line fix above will no
> longer be needed. but meanwhile, I'll assume silence is consent and
> commit this patch to the Zope 2.12 branch and trunk if I don't receive
> any comments to the contrary in 24h, as it fixes the breakages I had in
> the body of code I'm maintaining.

+1 from me -- the tests look fine.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktDhQQACgkQ+gerLs4ltQ7eUwCgtc7hry5LrS5ICu+zqLg8sGj+
0GAAoLcWGilpot4P2VY7heEYhHm05Rsb
=uNhL
-----END PGP SIGNATURE-----

-- 
Page Template: TALES string expr. unicode err.
https://bugs.launchpad.net/bugs/246983
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list