[Freeipa-devel] [PATCH] Make pkey always iterable when deleting

2010-12-20 Thread Jakub Hrozek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When deleting multiple objects, the code tries to enforce that the primary key is always iterable by doing: keys = keys[:-1] + (keys[-1], ) But this doesn't work, the line only concatenates two tuples effectively returning the original one. See the

Re: [Freeipa-devel] [PATCH] Make pkey always iterable when deleting

2010-12-20 Thread Jakub Hrozek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/20/2010 03:07 PM, Jan Zelený wrote: Jakub Hrozek jhro...@redhat.com wrote: When deleting multiple objects, the code tries to enforce that the primary key is always iterable by doing: keys = keys[:-1] + (keys[-1], ) But this doesn't work,

Re: [Freeipa-devel] [PATCH] Make pkey always iterable when deleting

2010-12-20 Thread Rob Crittenden
Jakub Hrozek wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/20/2010 03:07 PM, Jan Zelený wrote: Jakub Hrozekjhro...@redhat.com wrote: When deleting multiple objects, the code tries to enforce that the primary key is always iterable by doing: keys = keys[:-1] + (keys[-1], ) But