#3 seems to be the best choice, thanks. Kind of seems weird, I thought def user(): would automatically link something like default/user/ login.html etc. But it's all good. :) Used to my own auth system (well ceej's :D)
On Apr 1, 11:06 pm, Yarko Tymciurak <[email protected]> wrote: > On Wed, Apr 1, 2009 at 9:56 PM, mdipierro <[email protected]> wrote: > > > You have 3 options (assuming default.py controller) > > > 1) > > def user(): return auth() > > # create a single view called default/user.html for all urls > > > 2) > > def user(): > > if request.args: response.view='user/%s.html' % request.args[0] > > return auth() > > # create individual views 'default/user/login.html' etc. > > > 3) > > def login(): return auth.login() > > # create view "default/login.html" > > def register(): return auth.register() > > # create view "default/register.html" > > etc etc > > by the way, if you are going to do special stuff, your code will probably be > more explicit / readable w/ (3). > > > > > Massimo > > > On Apr 1, 9:26 pm, TheDude <[email protected]> wrote: > > > I've tried using Web2Py's auth system and then tried creating the > > > following views: > > > user/register.html > > > user/create.html > > > default/user/register.html > > > default/user/create.html > > > auth/create.html > > > auth/register.html > > > > None of them worked, how do you allow views for <domain>/default/user/ > > > register ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---

