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

On Wed, 29 Nov 2023 08:34:17 -0800
Tom Keffer <tkef...@gmail.com> wrote:

> It's a bit of a hack, but one thing you could try is to put something
> like this at the top of a template (NOT TESTED):
 
> #import locale
> #locale.setlocale(locale.LC_ALL, 'es_ES')
 
> This would set the locale. It will stay set until the next call to
> setlocale(). Note that this will set the locale for *every* time that
> the template is used.

My understanding is that the call to locale.setlocale has global
effect and impacts all running processes, but maybe I'm misinterpreting
the "not thread safe" warnings.  The OP seems to want to run out of two
locales simultaneously — one for FTP and one for Belchertown.  So long
as these skins are single threaded (one being complete before the other
begins), then each can call its own locale.setlocale.   I'm not sure
how *weewxd* runs its "services" repertoire, though.

- -- 
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather:  http://LacusVeris.com/WX
.. 31° — Wind W 13 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCZWdx/AAKCRBg2/xipKOW
UqyOAJ4jbejtywEIrb6Q5Vwfb1fhVQVtQQCeKGNM4KanMdpiRvRoe1Hdpbs0xYo=
=+cD5
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/20231129111644.7f54a290%40BigTimber.LacusVeris.com.

Reply via email to