ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/gpgme/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/gpgme/editutil.pyc

�
��POc@s�dZeZddgZddlZddlZyddlmZWn!ek
rgddl	m	ZnXddl
Z
d�Zed��Zed	e
e
ed	d
��ZdS(s�Utilities related to editing keys.

Currently only contains a utility function for editing the owner trust
value of a key in a keyring.
t	edit_signt
edit_trusti����N(tBytesIO(tStringIOcs"tj���fd��}|S(sDA decorator that lets key editor callbacks be written as generators.cs��||||��y0y�j�Wntk
rC�j�nXWntk
rYdSX�fd�}t�}z|j|||�Wd�j�XdS(Ncs�|tjtjtjtjtjtjtjtjtj	tj
tjfkrRdSy�j||f�}Wn)t
k
r�tjtjtj��nX|dk	r�tj||jd��ndS(NtASCII(tgpgmet
STATUS_EOFt
STATUS_GOT_ITtSTATUS_NEED_PASSPHRASEtSTATUS_GOOD_PASSPHRASEtSTATUS_BAD_PASSPHRASEtSTATUS_USERID_HINTtSTATUS_SIGEXPIREDtSTATUS_KEYEXPIREDtSTATUS_PROGRESStSTATUS_KEY_CREATEDtSTATUS_ALREADY_SIGNEDtsendt
StopIterationterrortERR_SOURCE_UNKNOWNtERR_GENERALtNonetostwritetencode(tstatustargstfdtdata(tgen(s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt
edit_callback4s$	
(t__next__tAttributeErrortnextRRtedittclose(tctxtkeyRtkwargsRtoutput(tfunction(Rs4/usr/lib64/python2.7/site-packages/gpgme/editutil.pytwrapper's

	(t	functoolstwraps(R)R*((R)s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt
key_editor%s(ccs�|tjtjtjtjtjfkr=td|��nd
V\}}|dks\t�dV\}}|dks{t�d|V\}}|dkr�dV\}}n|dks�t�dV\}}|d	ks�t�dV\}}d
S(s&Edit the trust level of the given key.sBad trust value %dskeyedit.promptstrust
sedit_ownertrust.values%d
s!edit_ownertrust.set_ultimate.okaysY
squit
skeyedit.save.okayN(	RtVALIDITY_UNDEFINEDtVALIDITY_NEVERtVALIDITY_MARGINALt
VALIDITY_FULLtVALIDITY_ULTIMATEt
ValueErrorRtAssertionError(R%R&ttrustRR((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyRRs"	


ic
cs�|dks!|t|j�kr0td��nd}|rId|}n|r\d|}n|dkrwtd	��ndV\}}	|	d
ks�t�d|V\}}	|	d
ks�t�d|V\}}	x�|	d
kry|	d
kr�dV\}}	q�|	dkr!d|rdndV\}}	q�|	dkrAd|V\}}	q�|	dkr]dV\}}	q�td||	ff��q�WdV\}}	|	dks�t�dV\}}	dS(s$Sign the given key.

    index:    the index of the user ID to sign, starting at 1.  Sign all
               user IDs if set to 0.
    local:    make a local signature
    norevoke: make a non-revokable signature
    command:  the type of signature.  One of sign, lsign, tsign or nrsign.
    expire:   whether the signature should expire with the key.
    check:    Amount of checking performed.  One of:
                 0 - no answer
                 1 - no checking
                 2 - casual checking
                 3 - careful checking
    isuser ID index out of rangetsignsl%ssnr%siiischeck must be one of 0, 1, 2, 3skeyedit.promptsuid %d
s%s
skeyedit.sign_all.okaysY
ssign_uid.expiretYtNssign_uid.classs%d
s
sign_uid.okaysUnexpected state %rsquit
skeyedit.save.okayN(iiii(tlentuidsR3RR4(
R%R&tindextlocaltnorevoketexpiretchecktcommandRR((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyRns6!


 
(t__doc__ttypet
__metaclass__t__all__R+RtioRtImportErrorRRR-RtFalsetTrueR(((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt<module>s
	-	

Zerion Mini Shell 1.0