[LCA2015-Chat] Keysigning BoF: gcaff patch to go through keys in same order as paper

Geordie Millar gm at stackunderflow.com
Wed Jan 14 13:54:36 EST 2015


I was going through the keys in gcaff and was getting annoyed that it seemed to be asking me for the keys in no specific order.

I've quickly hacked the gcaff code to order the keys in order of 32 bit fingerprint, same order as they are on the sheet.

Patch is below - I haven't submitted it as a pull request (yet) because it's not really configurable.

Thanks.

> --- ui.py	2015-01-14 15:48:13.000000000 +1300
> +++ ui.py	2015-01-14 15:47:49.000000000 +1300
> @@ -58,12 +58,15 @@
>              self.on_signing_keys_changed
>          )
> 
> -        keys = (
> +        keys = [
>              key for key in tmpgpg.list_keys()
>              if key not in signing_keys
> -        )
> +        ]
> 
>          self.uid_selectors = []
> +
> +        keys.sort(key=lambda a: a.fingerprint[-8:])
> +
>          for key in keys:
>              uid_selector = UidSelector(key)
>              self.append_page(uid_selector)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.lca2015.linux.org.au/pipermail/chat/attachments/20150114/65783351/attachment.sig>


More information about the Chat mailing list