> "Ok, the thing is that there are no hooks in rendering cause all the 
>>>>>>> rendering is meant to be happen in your own widget." - I disagree.  You 
>>>>>>> can 
>>>>>>> modify a SQLFORM after it renders. I am simply trying to achieve a 
>>>>>>> similar 
>>>>>>> effect at the Field level.
>>>>>>>
>>>>>>

How about a Field(..., attributes={"class": "required"}) argument so 
widgets can override their attributes with those on creation. This would 
avoid the need of adding custom widget code for that simple task. OTOH I 
think the best would be not to provide the shortcut because it sort of 
mixes the database configuration and the client user interface. I'd instead 
subclass the widgets so they add the class to the html if the field is 
required.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to