You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to forma...@googlegroups.com
Is there a reason that field.set cannot accept a value argument and field.value cannot be set directly?
When rendering the form I need to set a SelectFieldRenderer to a specific value. This is used as the default when adding a new item. Currently I have subclassed SelectFieldRenderer and in render() it checks to see if a default key was added to metadata. This is a weird shoehorn for something that should be possible already.
I could submit a patch, but I don't know whether it should allow setting value directly (through field.set(value=bleh) ) or if it should add a new attribute to the field instance called default_value.
--Jason
Gaël Pasgrimaud
unread,
Jun 15, 2012, 10:46:13 AM6/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to forma...@googlegroups.com
You can always set the field value by accessing the model. fs.model.attr = 'foo'
But I have no objection to add a value argument to set()