[web2py] Digitally signed URLs in py4web?

2020-02-13 Thread Luca
In web2py, I used to sign all the AJAX callback URLs, using the URL(..., user_signature=True) method. In py4web, I don't see any emphasis or use on signed URLs. Why are signed URLs not commonly used in py4web? A digital signature is useful to prevent javascript running from other sites

[web2py] Error in factories.py in py4web?

2020-02-13 Thread Luca
In the class ActionFactory, there's the code below. Is that an error? I don't think requires_login is in the proper place? Maybe I don't understand. def put(self, path=None, template=None): return self._action_maker('PUT', template, requires_login) -- Resources: - http://web2py.com -

[web2py] Re: py4wb simplification

2020-02-13 Thread Luca
What do @authenticated and @unauthenticated do? Can they be added to the documentation? In particular I don't understand # define a button that make the following serverside POST callback @unauthenticated.button("click me") def a_button(msg): print("you clicked the button and server

Re: [web2py] webp2y XML helper sanitize line breaks under python3.6

2020-02-13 Thread Christian Varas
Great! El El jue, 13 de feb. de 2020 a la(s) 09:22, Clemens < clemens.odend...@claret-clover.de> escribió: > Tim Nyborg has got the solution: > It's a bug in yatl/sanitizer.py, which can be fixed as described: > >

[web2py] Re: psycopg2 error

2020-02-13 Thread Clemens
Have you installed the corresponding python 3 lib for postgres? *pip3* install --no-binary :all: --upgrade psycopg2 What's your os? I'm using Linux and I switched to python 3, also using postgres and I have no problems with psycopg2. Best regards Clemens On Wednesday, February 5, 2020 at

Re: [web2py] Re: special chars in view, utf8 issue ?!

2020-02-13 Thread António Ramos
my solution .decode('utf8').encode('latin1') just did it without thinking... dont know what i´m doing but it works... {{temp=db(db.apps.id>0).select(db.apps.icon,db.apps. url,db.apps.bg,db.apps.title,orderby=db.apps.id)}} {{for x in temp:}}

Re: [web2py] Re: Looking for web2py developer for Italian small company

2020-02-13 Thread Gaël Princivalle
Dear Massimo. Did you plan to add the grid to py4web? Il giorno lunedì 10 febbraio 2020 17:13:56 UTC+1, Massimo Di Pierro ha scritto: > > Hello Victor, > > I recommend everybody to move from web2py to py4web. I am using the latter > for my own projects and find it better. > Honestly web2py has

Re: [web2py] webp2y XML helper sanitize line breaks under python3.6

2020-02-13 Thread Clemens
Tim Nyborg has got the solution: It's a bug in yatl/sanitizer.py, which can be fixed as described: https://stackoverflow.com/questions/60176267/webp2y-xml-helper-sanitize-line-breaks-under-python3 Thanks Tim! On Wednesday, February 12, 2020 at 5:17:31 PM UTC+1, Clemens wrote: > > Hi Chris, > >

Re: [web2py] Re: Looking for web2py developer for Italian small company

2020-02-13 Thread Kevin Keller
Being self contained, simple and with smartgrid, integrated Auth, and even wiki engine and now again with updated pyrtf web2py could still have great future as a a framework for company internal web database apps (also easy field calculations) to replace I. E. Lotus notes or ms access apps and