[Freeipa-devel] [PATCH] restructure tools

Rob Crittenden rcritten at redhat.com
Wed Feb 27 15:42:56 UTC 2008


This is a potentially disruptive patch to all the admin tools. I wanted 
to be able to catch KeyboardInterrupt but I needed to move all the 
imports under a try/except in order to catch it in all cases. If one 
interrupted early enough you'd catch it in the import phase which wasn't 
covered.

So I moved all the imports into a main try/except which calls our main. 
I moved most other exceptions out of main into this top level try/except 
to make the individual functions more readable.

I also found a difference in the way GSSError is handled in python 2.4 
and python 2.5 so I added a small helper to deal with it.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-706-tools.patch
Type: text/x-patch
Size: 78193 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080227/e133523a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080227/e133523a/attachment-0001.bin>


More information about the Freeipa-devel mailing list