[web2py] Re: crud.delete and record versioning error
On Thursday, September 8, 2016 at 2:50:54 AM UTC-7, Kirill Shatalaev wrote: > > So, is CRUD going to be deprecated? > That's been discussed in this forum. The changelog doesn't discuss it, but way back in 1.99.1-1.99.2, "- new SQLFORM.grid and SQLFORM.smartgrid (should replace crud.search and crud.select)" Obviously the book is a a little behind, because in Chapter 7 (Forms and Validators) it is referred to as "a recent addition." /dps > вторник, 6 сентября 2016 г., 18:39:03 UTC+4 пользователь Massimo Di Pierro > написал: >> >> please do not use crud. it has not been supported in long time. just use >> db(...).delete() >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: crud.delete and record versioning error
So, is CRUD going to be deprecated? вторник, 6 сентября 2016 г., 18:39:03 UTC+4 пользователь Massimo Di Pierro написал: > > please do not use crud. it has not been supported in long time. just use > db(...).delete() > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: crud.delete and record versioning error
please do not use crud. it has not been supported in long time. just use db(...).delete() On Sunday, 4 September 2016 07:16:24 UTC-5, Kirill Shatalaev wrote: > > > Well it seems to me del table[record_id] does not work with record > versioning according to this old discussion: > > https://groups.google.com/d/topic/web2py/XqNkiPQq8v4/discussion > > So I changed in controller crud.delete to db().delete() > > But I think this is a bug on gluon, am I right? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: crud.delete and record versioning error
Well it seems to me del table[record_id] does not work with record versioning according to this old discussion: https://groups.google.com/d/topic/web2py/XqNkiPQq8v4/discussion So I changed in controller crud.delete to db().delete() But I think this is a bug on gluon, am I right? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.