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

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to