[web2py] Re: link to a grid

2018-05-10 Thread Anthony
The signature of the URL function is URL(a, c, f). If you pass only two arguments, it assumes they are c and f, and if you pass only one, it assumes it is f. You passed only 'static/Etichette', so it assumes that is the function and therefore uses the current application and controller. It shou

Re: [web2py] link to a grid

2018-05-10 Thread Richard Vézina
The error message is simple, you don't have a controller function named static in you default controller file... Richard On Thu, May 10, 2018 at 6:59 AM, Andrea Fae' wrote: > Hello I have a grid with certain fields. > In a filed there is a name of a pdf file that I have in the folder > "static/

[web2py] Error in mysql connection

2018-05-10 Thread yogeshwar khalkar
Hi all, I am facing some issue to connect to the database with password including '@' symbol. without including '@' symbol in the password, it works. Is this a bug or am I missing something mysql://root:pass@123@localhost/csautomation It workes for following string: mysql://root:pass123@loca

[web2py] link to a grid

2018-05-10 Thread Andrea Fae'
Hello I have a grid with certain fields. In a filed there is a name of a pdf file that I have in the folder "static/Etichette". I have a lot of pdf file in this folder and I'd like, when I click this link, to open the related file... This is the grid grid = SQLFORM.grid(db.socio, links = [lambda