Re: [website] Document how to set usertags in BTS

Paul Wise <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Organization Debian
Message-ID <[email protected]>
On Sat, 2021-08-21 at 13:01 +0200, Holger Wansing wrote:

> <p>You can set usertags for multiple users at bug submission time by
> including multiple User pseudo-headers; each Usertags pseudo-header
> sets the usertags for the last user set before via User pseudo-
> header.

That seems a bit cumbersome to me, and is missing "the" after "via".

How about these alternative options?

... sets the usertags for the user set by the latest User pseudo-header.
... sets the usertags for the user set by the previous User pseudo-header.

The option proposed by Wouter seems reasonable to me too.

I suggest also talking to the debian-l10n-english list about this, they
might be able to help select the most clear, simple and correct option.

The code implementing the feature works like this:

cmds = [("user", from_address)]
for line in message:
    cmds += line.split(": ", 1)
for cmd, value in cmds:
    if cmd is "user":
        user = value
    if cmd is "usertags":
        process_usertags(user, value)

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIyBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmEg8NYACgkQMRa6Xp/6
aaPONw/xAdk/nrZ4D6UHUpgKPkq0ZbPBiJV9Fi/aml1pV50JeZGb7NbzUhzLoJo6
8SB8dCN39ghn1SgNxgpFyClLy3cW3IylWb5CVNYgllJTxTVvcNhTj/7GEdMv3I83
kKIg3tgMrVwj7C+BuTHxYVPc6SuEqaiBufI0b33iBprTwKVnnmYG5pVDLUW3uO3p
BahmcJodhaUszlnSczkSpY4lWhTFYcM+WKfJNaj3ijCu9Mwbehc5wOrATrX+tXtx
68j/uBDqaKovhrp7EX+eSASTyrvgD5+x6HJMn3WX6Acgyst4gkthppdKVwhqlHg0
ctriA7guU8CveSdqk3BLFp0LAe831uYuwrziuGqTwtdklGsbZkYOx2f+Wd9oL4Qh
CQKP3Upw8sUVEbRBEczuRwlCrKs6ThWHtFXeg6qIy+VFu/sk0z0Co3sKEhSwmNw8
Zfjej6aAJCvfqzkkDbfqMOVgh4Jz/cBXOivDiykDJwhxbVxoW2+VRVfQI6u3leDb
UWUOjCUd6VzqDD9c9vLAItcgMNJi9x4K4afdtq053oyxjaOEQowv5CH/PtfXucWl
MLaDGa8Ls220pVQql8jFlhg3zJ00dzhVko5nDj4Gr+Oekq5E2M4uS6ZwwvTuUtfz
qA13jytYw0D7A25Oi7C9g1JwXPhZwjUCWHrpW0fnMZ7eGOruFA==
=8Nx6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.