[web2py] Re: Update multiple existing records with the same data from 1 form which is the second form on the page

2016-04-01 Thread drew Roberts
On Thursday, March 31, 2016 at 3:28:15 PM UTC-4, Dave S wrote: > > > > On Thursday, March 31, 2016 at 8:28:30 AM UTC-7, drew Roberts wrote: >> >> On Monday, March 21, 2016 at 9:53:36 PM UTC-4, drew Roberts wrote: >> >>> I have something like this in a con

[web2py] Re: Update multiple existing records with the same data from 1 form which is the second form on the page

2016-03-31 Thread drew Roberts
On Monday, March 21, 2016 at 9:53:36 PM UTC-4, drew Roberts wrote: > I have something like this in a controller: > > > @auth.requires_login() > def list_machines(): > form=crud.create(db.machine) > form1=SQLFORM(db.machine) > machines=db(db.machine.id>0).sel

[web2py] Update multiple existing records with the same data from 1 form which is the second form on the page

2016-03-21 Thread drew Roberts
I have something like this in a controller: @auth.requires_login() def list_machines(): form=crud.create(db.machine) form1=SQLFORM(db.machine) machines=db(db.machine.id>0).select(orderby=db.machine.name) return dict(machines=machines,form=form,form1=form1) The view is something like

[web2py] Seeking guidance with linked tables and smart grids

2016-02-12 Thread drew Roberts
As I learning exercise I have set up a little volunteer database. You can recreate by doing the following: 1. Create a new simple application called smartgridex 2. At the bottom of db.py paste the following: db.define_table('volunteer', Field('firstname', requires=[IS_NOT_EMPTY()]), Field('