[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 und

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

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: - http://web2py.co