On Tue, Mar 17, 2009 at 2:45 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > http://www.reddit.com/r/programming/comments/85bf0/video_about_web2pys_new_features_159/
I just worked through the screencast and it is very well done. Thank you. One thing about the menu.py: It is tedious to write this manually to have the auth methods available in the menu. Maybe the scaffold welcome app should contain a menu.py file which has all the wiring between response.menu entries and the respective user/... actions. Maybe something like you demonstrated: #response.menu = [['index', False, URL(r=request, f='index')]] #if auth.is_logged_in(): # response.menu.append(['logout', False, URL(r=request, f='user/logout')]) #else: # response.menu.append(['login', False, URL(r=request, f='user/login')]) # response.menu.append(['register', False, URL(r=request, f='user/register')]) # response.menu.append(['lost_password', False, URL(r=request, f='user/retrieve_password')]) Kind regards, Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---