[web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Michael Cowen
I am not sure if this is related to web2py or something else so I thought I would ask ... I have three buttons that I make a toggle switch through Java script. The Java script changes their class name which then lets different CSS style them. I have noticed that when I click a button, EVERY

[web2py] Re: table name created as a string in db model is not reference-able as a DB object in the controller

2018-04-16 Thread Michael Cowen
Apologies. That's pretty fundamental to how all this works. Thank you ! On Monday, April 16, 2018 at 9:53:08 AM UTC-5, Michael Cowen wrote: > > In the model file …/Models/db.py I have the following code > > > > *# Connect to a local postgres instance* > > *db

[web2py] table name created as a string in db model is not reference-able as a DB object in the controller

2018-04-16 Thread Michael Cowen
In the model file …/Models/db.py I have the following code *# Connect to a local postgres instance* *db = DAL(**"postgres://user@localhost/DBName"**)* *# Create some fields* *_name * *= Field(**'name'**, * *type=**'string'**, * *length=* *'256'** )* *_author* *