[web2py] Re: Handling "Invalid function", "Invalid request", "Invalid controller"

2018-06-26 Thread 黄祥
perhaps this link can be used: http://www.web2pyslices.com/slice/show/1529/custom-error-routing best regards, stifan -- 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 I

[web2py] Handling "Invalid function", "Invalid request", "Invalid controller"

2018-06-26 Thread Christian Varas
Hello, I'm trying to redirect those errors to another page. Errors: invalid function (default/bla)invalid requestinvalid controller (bla/index)I've been playing with routes.py but I don't know how to map those errors. it is possible to do this without map all urls in routes.py ? Any help would be

[web2py] Re: data from more than one table on SQLFORM grid

2018-06-26 Thread Anthony
The first argument to SQLFORM.grid() can be a DAL query, including a query that implies a join (which will include fields from multiple tables). To limit the fields displayed, you can use the "fields" argument (or simply set readable=False on any fields to exclude). By default, the first table

[web2py] data from more than one table on SQLFORM grid

2018-06-26 Thread Diego Tostes
HI, I have those tables: *Produto = db.define_table('produto',* *Field('ficha_tecnica', 'upload', label=T("Ficha Tecnica")),* *Field('descricao_produto', 'string', label=T("Descricao Produto")))* *Ordem_servico = db.define_table('ordem_servico',* *Field('identificador_os', 'string'

[web2py] Infinite loading

2018-06-26 Thread Carlos Cesar Caballero Díaz
Hi guys, there is some infinite loading implementation for web2py out there? Greetings. -- 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 thi

[web2py] Recaptcha

2018-06-26 Thread Alby Cartner
Another noob question. I am trying to put a v.2 recaptcha into a response form. I have searched the forum, the book, web2pyslices etc. and have had no joy. I thought this was the answer https://groups.google.com/forum/#!topic/web2py/eeMT2Bb-KYA but want it to happen every time regardless so disc

[web2py] Why these functions don't work in web2py

2018-06-26 Thread Anthony
Note, Idle is not giving you a return value - the function is simply printing the output, which Idle displays. Of you want a return value, you must return something. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

Re: [web2py] Re: How to handle routing

2018-06-26 Thread marco mansilla
Thank you Anthony, this fixed the issue on development, and on production should exist non. Adding web2cli as default app solved the problem. Oh, and just noticed I didn't send the link of the app [0] in the first email. My bad. [0] https://github.com/marcomansilla/web2cli Marco. On Tuesday

[web2py] Re: Using Scheduler without "dict" to define functions

2018-06-26 Thread Joe Barnhart
Thank you for pulling back some of the mystery surrounding the scheduler for me. The module import idea is fabulous and will completely solve my problem! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: Using Scheduler without "dict" to define functions

2018-06-26 Thread Anthony
> > I'm going to have perhaps a hundred little functions that the scheduler > inserts into the queue. Now, if I define my little functions in the same > Model page as the scheduler, everything works as expected. Each of my > functions is like a stub -- it generally provides a call point for t