[Zope3-dev] how to manipulate interfaces?

Adam Groszer adamg at fw.hu
Wed Dec 14 08:44:27 EST 2005


Hello Stephan,

I'm just thinking about the following:

IDocTypeEditForm = copy.deepcopy(IDocType)
IDocTypeEditForm.getDescriptionFor('processDef').readonly=True

what do you think about that?

I'd like to keep it really simple and so reduce the opportunities of
errors.

Tuesday, December 13, 2005, 2:20:48 PM, you wrote:

> On Tuesday 13 December 2005 05:41, Adam Groszer wrote:
>> IDocTypeEditForm.getDescriptionFor('processDef').readonly=True
>>
>> >>>IDocType.getDescriptionFor('processDef').readonly
>>
>> True
>>
>> >>>IDocTypeEditForm.getDescriptionFor('processDef').readonly
>>
>> True

> This is correct Python behavior. :-) If you want a refined field definition,
> you have to recreate the field.

> Regards,
> Stephan


-- 
Best regards,
 Adam                            mailto:adamg at fw.hu
--
Quote of the day:
Weiler's Law: Nothing is impossible for the man who does not have to do it himself.



More information about the Zope3-dev mailing list