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

gnafou fmgre-liste01 at yahoo.fr
Wed Nov 9 09:16:30 UTC 2011


Hello,

1/Developping my first dexterity product, i've been trying to 'disable' a field widget .. but could not find how 
( i have default values that should be visible but must not be changed ) 

maybe i should do that with a specific css style ??


2/ I was wondering if it s possible to add an html paragraph in the body of the form 

I am using the dexterity tutorial to build my form and feeding my default values 



Thanks
( and i apologize for asking stupid newbies questions ;-) ) 

----


class ITruc(form.Schema):

    Name = schema.TextLine(
        title=_(u'Name'),
        required=True,
    )

[...]

@form.default_value(field= ITruc['Name'])
def nameDefaultValue(data):
     return BasicLDAPInfo(data.context.getOwner().getUserName(),'sn').ret



More information about the Product-Developers mailing list