Re: [web2py] Re: error: invalid literal for long() with base 10: ''

2018-07-02 Thread Diego Tostes
The problem was at dB.clientes... Solved. Thanks!! Em seg, 2 de jul de 2018 16:20, Anthony escreveu: > Hard to say what's going on. Looks like it's getting an empty string from > an ID field. What does the db.clientes definition look like? > > On Monday, July 2, 2018 at 7:38:27 AM UTC-4, Diego

[web2py] Re: error: invalid literal for long() with base 10: ''

2018-07-02 Thread Anthony
Hard to say what's going on. Looks like it's getting an empty string from an ID field. What does the db.clientes definition look like? On Monday, July 2, 2018 at 7:38:27 AM UTC-4, Diego Tostes wrote: > > Hi, > > i have this table: > > def tempo_total_produto(produto_id): > try: > quer

[web2py] Re: error: invalid literal for long() with base 10: ''

2018-07-02 Thread Dave S
On Monday, July 2, 2018 at 4:38:27 AM UTC-7, Diego Tostes wrote: > > Hi, > > i have this table: > > [...] > Produto = db.define_table('produto', > Field('ficha_tecnica', 'upload', label=T("Ficha Tecnica")), > Field('descricao_produto', 'string', label=T("Descricao Produto")), > Field