[Product-Developers] dexterity [newbie] : how to disable a Field widget

David Glick davidglick at groundwire.org
Mon Nov 14 04:16:22 UTC 2011


On 11/13/11 8:14 PM, Karl Johan Kleist wrote:
> David Glick-3 wrote:
>> That is also an option, but doesn't quite meet the use case that was
>> described (if the user lacks the write permission and the form is in
>> input mode, then the field will not show up at all, rather than showing
>> up disabled).
>>
> Also if the user has read permission to the field? That's sort of silly
> behavior, isn't it?
>
The write permission is checked if the field is in input mode, and the 
read permission is checked if the field is in display mode. Making it 
use the read permission and switch the mode to display if the write 
permission check fails might be reasonable.


----------		
David Glick
 Web Developer
 davidglick at groundwireconsulting.com
 206.286.1235x32

Groundwire Consulting is here.

http://groundwire.org/about/FAQ-gw-consulting




More information about the Product-Developers mailing list