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
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
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
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('
4 matches
Mail list logo