There is no special place for this.
You can put them in a module and import, in a controller or in a model
where you need them.
For example:
def mywidgetfield, value):
return INPUT(_type='text',
value=value,
_id = '%s_%s' % (field._tablename, field.name),
OK, now I'm scared. I don't even know what file the custom widget is
supposed to live in (and I've read the doc, I swear). Do you know of
any good examples I could look at on doing an AJAX call on a drop down
list, where the drop down value is used to pick a value from a table
and then send it back
yes
On Jan 24, 9:15 pm, weheh wrote:
> I'm combining two tables into one form (yet again). I'm using
> SQLFORM.factory(db.auth_user,db.table1) to combine the 2 tables into 1
> form. All fields have unique names.
>
> I am custom designing the form to make it more compact than the linear
> approach
3 matches
Mail list logo