[web2py] Suggestions to Examples Page

2018-06-20 Thread AJ
Hello, I was reading through the examples page . Two thoughts I want to share. First, Example 16: it has session misspelled as "sesstion" with a "t" in there. Second, Example 17: The text explaining example 17 has an explanation about th

Re: [web2py] Re: customize requires in DB

2018-06-20 Thread Diego Tostes
Thanks Antony. I will code again with your tips. Rgds Diego 2018-06-20 11:56 GMT-03:00 Anthony : > Materia_Prima.pedido_id.requires = IS_IN_DB(db(Pedido), 'pedido.id', > lambda r: '%s - referencia: > %s' % (r.produto_id.cliente_nome, > > r.ordem

[web2py] Re: customize requires in DB

2018-06-20 Thread Anthony
Materia_Prima.pedido_id.requires = IS_IN_DB(db(Pedido), 'pedido.id', lambda r: '%s - referencia: %s' % (r.produto_id.cliente_nome, r.ordem_de_servico)) Note, r.produto_id.cl

[web2py] Re: save the original value of one field in another table field

2018-06-20 Thread Anthony
On Wednesday, June 20, 2018 at 9:16:04 AM UTC-4, Ayron Rangel wrote: > > Anthony, > > What I want would be to insert the same value(integer) from one Field to > another Field on other table. > Ex.: > > db.define_table('product', > Field('name', 'string'), > Field('qtd', 'integer', default

[web2py] customize requires in DB

2018-06-20 Thread Diego Tostes
I have those tables: *Produto = db.define_table('produto',* *Field('ficha_tecnica', 'upload', label=T("Ficha Tecnica")),* *Field('cliente_id', 'integer', label=T("Cliente ID")),* *Field('cliente_nome', 'string', label=T("Nome Cliente"))* *)* *Pedido = db.define_table('pedido',* *F

[web2py] Re: save the original value of one field in another table field

2018-06-20 Thread Ayron Rangel
Anthony, What I want would be to insert the same value(integer) from one Field to another Field on other table. Ex.: db.define_table('product', Field('name', 'string'), Field('qtd', 'integer', default=1, readable=False, writable=False), Field('stock_id', db.stock) ) db.define_table

[web2py] Re: Scheduler error using python3.6 and psycopg2

2018-06-20 Thread Bart
I have found a workaround for this issue. The root cause is probably something in the pyDal connector or psycopg2 or threading. I leave the finding of that to the experts. The workaround is to add code to gluon/scheduler.py to test the connection before the rest of the Scheduler.send_heartbeat()

[web2py] Re: password reset does not redirect to correct page

2018-06-20 Thread Anthony
auth.settings.reset_password_next Anthony On Monday, June 4, 2018 at 8:32:27 AM UTC-4, Yebach wrote: > > Hello > > After the password reset link is received in my mail and I follow the link > to MyApp > i/default/user/reset_password/1528115334-1104060c-6c13-4715-a153-d19a9f532085 >

Re: [web2py] Re: user request_reset_password doesn't send mail

2018-06-20 Thread Anthony
Describe the exact workflow and exactly what you observe. Check db.auth_event to see if anything is logged. You can also add onvalidation and onaccept callbacks to see if they are getting executed. Anthony On Friday, June 1, 2018 at 12:54:40 AM UTC-4, Yebach wrote: > > It sends mail for retriev