[Freeipa-devel] [PATCH] fix for single ACI
Kevin McCarthy
kmccarth at redhat.com
Mon Oct 15 21:58:31 UTC 2007
Keeping with a few micro-patches to spare poor Rob. Fix to translate
single ACI's into a list, so I don't end up iterating over chars! :-)
-Kevin
-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1192485342 25200
# Node ID 718f89606a6fcfa850554541f40e7121e529f1df
# Parent adbcd2bf981679e0596cc340b07b8361ce28833d
Fix for when there's a single ACI.
diff -r adbcd2bf9816 -r 718f89606a6f ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py
--- a/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py Mon Oct 15 14:53:44 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py Mon Oct 15 14:55:42 2007 -0700
@@ -125,6 +125,8 @@ class DelegationController(IPAController
aci_str_list = aci_entry.getValues('aci')
if aci_str_list is None:
aci_str_list = []
+ if not(isinstance(aci_str_list,list) or isinstance(aci_str_list,tuple)):
+ aci_str_list = [aci_str_list]
try :
old_aci_index = aci_str_list.index(kw['orig_acistr'])
@@ -171,6 +173,8 @@ class DelegationController(IPAController
aci_str_list = aci_entry.getValues('aci')
if aci_str_list is None:
aci_str_list = []
+ if not(isinstance(aci_str_list,list) or isinstance(aci_str_list,tuple)):
+ aci_str_list = [aci_str_list]
aci_list = []
for aci_str in aci_str_list:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071015/d0810db5/attachment.bin>
More information about the Freeipa-devel
mailing list