Re: [web2py] Deleting a db table row

2017-10-14 Thread 黄祥
think you can do it by store the user created id (auth.signature or code it by your self) in your table and use it as a condition *e.g. not tested* query = ((db.table.id == id) & (db.table.created_by == auth.user_id) ) db(query).delete() best regards, stifan > -- Resources: -

Re: [web2py] Deleting a db table row

2017-10-14 Thread Maurice Waka
Hi. I happened to have the same issue as this: Specifically (syntax-wise) how does one delete a specific table row, but INDEPENDENT of the ".id" field? for example, lets say that I have the following rows in a database table: bid.idbid.bid_id 1LJWI 2LJWJ 3LJWK 4

[web2py] Re: directory structure of uploaded file

2017-10-14 Thread Rudy
Hi Anthony, Thanks for your continuous help. I tried like below, i had to specify uploadfolder in SQLFORM.factory(), otherwise web2py raised error saying user must specify uploadfolder. Then I thought i could override it after form.accepted, but it didn't. The uploaded file ended up storing

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-14 Thread Dave S
On Friday, October 13, 2017 at 4:22:42 PM UTC-7, Joe wrote: > > Hi Dave, I have reloaded the apps in web2py if that's what you mean. I > can't restart web2py, I can only reload the apps, I guess. > Is there an other way on pythonanywhere? I mean, restarting web2py instead > of reloading the