Not yet. Still making changes. The latest is on github. Will probably post 
more tomorrow


On Saturday, 1 February 2020 13:50:44 UTC-8, davidjensen wrote:
>
> I do not see an up-to-date web2py reference in  PyPI
>
> On Sat, Feb 1, 2020 at 3:44 PM <web2py@googlegroups.com> wrote:
>
>> web2py@googlegroups.com 
>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/web2py/topics>
>>  Google 
>> Groups 
>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
>>  
>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
>>  
>> Topic digest 
>> View all topics 
>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/web2py/topics>
>>  
>>
>>    - py4wb simplification 
>>    
>> <#CAPnHjLBEHhqNN9Cc58_pQoTuLP0hfdhtww=xgK7ttfFSdRAo=g@mail.gmail.com_m_2908440178038656909_group_thread_0>
>>  
>>    - 1 Update 
>>
>> py4wb simplification 
>> <http://groups.google.com/group/web2py/t/29bb590b8cd3577c?utm_source=digest&utm_medium=email>
>>  
>> Massimo Di Pierro <massimo.dipie...@gmail.com>: Jan 31 08:55PM -0800 
>>
>> I committed some new code to py4web
>>  
>> Now you can do:
>>  
>> from . common import authenticated, unauthenticated # from latest 
>> _scaffold
>>  
>> # exposes index as /{app_name}/index and uses index.html or generic.html 
>> template, auth.user, db, T, session
>> @authenticated()
>> def index():
>> return dict()
>>  
>> # GET only
>> @authenticated.get()
>> def index():
>> return dict()
>>  
>> # exposes /{app_name}/index/<a>/<b>/<c>
>> @authenticated.get()
>> def index(a,b,c):
>> return dict()
>>  
>> # more explicit
>> @authenticated.get("index/<a:int>/<b:int>/<c:re:.*>)
>> def index(a,b,c):
>> return dict()
>>  
>> Some magic
>>  
>> # 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 received:", msg)
>>  
>> # expose a page that displays the button which - onclick - makes the 
>> ballback
>> @unauthenticated.get()
>> def show_a_button():
>> return dict(mybutton = a_button(msg="hello world"))
>>  
>> Thoughts? Should we keep this API? Can we improve it?
>> Back to top 
>> <#CAPnHjLBEHhqNN9Cc58_pQoTuLP0hfdhtww=xgK7ttfFSdRAo=g@mail.gmail.com_m_2908440178038656909_digest_top>
>>  
>> You received this digest because you're subscribed to updates for this 
>> group. You can change your settings on the group membership page 
>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/web2py/join>
>> .
>> To unsubscribe from this group and stop receiving emails from it send an 
>> email to web2py+unsubscr...@googlegroups.com. 
>>
>
>
> -- 
> David Jensen
> Apartment 412
> 414 w. 120th Street
> New York, New York 10027
> c646-282-6355
> h212-866-7094
>

-- 
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 this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c6913562-223c-4360-9439-9ffdd4228570%40googlegroups.com.

Reply via email to