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