I have multiple controller files, each covering a different branch of
functionality for my site. Within each controller file are various
controller functions, each requiring auth login "@auth.requires_login
()". My question is what's the preferred style to implement this
without copying the auth "def user(): return dict(form=auth())"
function into each controller file, which would violate DRY
principles?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to