Re[2]: [Zope3-dev] how to manipulate interfaces?

2005-12-14 Thread Adam Groszer
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,

Re: [Zope3-dev] how to manipulate interfaces?

2005-12-13 Thread Stephan Richter
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. :-) I

[Zope3-dev] how to manipulate interfaces?

2005-12-13 Thread Adam Groszer
I have a schema where for one attribute (processDef) the user should be able to modify it only at the time he adds the object. This is a quick hack to spare some lines of code, but it is not working as expected. Modifying derived interface modifies the base too. Is that the expected behavior? How