Re: [Pyme-help] Constants for import/secret flag in key
Status: Beta
Brought to you by:
belyi
From: Stefan N. <ste...@fr...> - 2005-11-30 16:28:47
|
Igor Belyi wrote: > Yes, I noticed this problem as well. I'm still thinking about what will > be a good solution. I don't like change package name just for one type > of constant and I don't like changing name for all constants... Yes, that is probably not easy to decide but it has to be done. What kind of possibilities do you/we have? a) We can rename just the import file to IMPORT Problem: missing semantic b) We can captilize all constant files =3D=3D> A lot of work c) I really don't know. But renaming import to somethning like "_import" is not elegant/smart. >> 2) secret flag in key > Well... It looks like the parameter to the > gpgme_op_keylist_start() which is the second parameter to > ctx.op_keylist_all() works not how it is described in 'info gpgme'. > According to what I see - True means to retrieve only secret keys and > False means to retrieve _only_ public keys.=20 No, I don't think so: " [..] If SECRET_ONLY is not `0', the list is restricted to secret keys only. [..] " This works fine and correctly. Problem is, that depending on this parameter, the flag "secret" in the key is set. Actually, what i need, is for example: - Getting a list of all keys in the keyring. - Depending on the flag "secret" displaying one key or a key-pair(for secret keys) But the problem is that the "secret"-flag depends on the parameter 'SECRET_ONLY', which should be False according to list all keys. > Some time ago I've accepted > it and didn't bother to push for a change in gpgme or update of its > documentation. If you think this is very important I can follow up on > gpgme list with such request. I think, there is no need to change gpgme. It behaves correctly. The only question is, if this "flag-thing" is an pyme-eror, a gpgme-error or just the way, it should be Thanks for your help Stefan --=20 Stefan Neumann Dipl.-Ing. (FH) freiheit.com technologies gmbh Stra=DFenbahnring 22 / 20251 Hamburg, Germany fon +49 (0)40 / 890584-0 fax +49 (0)40 / 890584-20 1CB2 BA3C 168F 0C2B 6005 FC5E 3EBA BCE2 1BF0 21D3 B=FCcher kaufen und Freie Software f=F6rdern | http://bookzilla.de/ |