[Freeipa-devel] [PATCH] 54 Fix attempted write to attribute of read-only object

Jan Cholasta jcholast at redhat.com
Fri Oct 14 08:01:31 UTC 2011


Dne 13.10.2011 17:36, Rob Crittenden napsal(a):
> Jan Cholasta wrote:
>> Also fixes a few issues in the unit tests. All of them now run
>> successfully.
>>
>> https://fedorahosted.org/freeipa/ticket/1959
>>
>> Honza
>
> I think it would be better to use:
>
> object.__setattr__(self, 'ca_host', self._select_ca())
>
> This will cache the value of a known CA host.
>
> rob

That's ugly!

Here you are anyway.

Honza

-- 
Jan Cholasta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jcholast-54.1-fix-read-only-write.patch
Type: text/x-patch
Size: 3908 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111014/9fd2c9f6/attachment.bin>


More information about the Freeipa-devel mailing list