Re: [web2py] Re: py4wb simplification

2020-05-07 Thread António Ramos
With this callback can i have "powerfields" that automatically update themselves in the database ? No need to submit forms.. Em sáb., 15 de fev. de 2020 às 11:27, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > They they should be added > > @autneticated and @unauthenticated are

[web2py] Re: py4wb simplification

2020-02-15 Thread Massimo Di Pierro
They they should be added @autneticated and @unauthenticated are defined in common.py The @unauthenticated decorator automatically applys fixtures: db, auth, session, T. exposes the action with user /{function_name} and defaults to template {function_name}.html (very much like web2py does)

[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