Not necessarily.

You can do

def user(): return dict(form=auth())

or

def login(): return dict(form=auth.login())
def register(): return dict(form=auth.register())
....

In the second case the syntax is similar to T2.

Massimo

On Jan 26, 4:26 pm, Fran <francisb...@googlemail.com> wrote:
> On Jan 23, 7:10 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > I have a preliminary version of inclusion if T2 functionality into
> > web2py core. I am not yet promising backward compatibility here. The
> > module name many change. For now it is in trunk as gluon/tools.py
>
> I just started looking at this...porting my app to use this (as I
> assume that T2's version will stagnate & future development will focus
> here, right?)
>
> The strings in the Auth & Crud classes should be localisable via T().
>
> The fact that all Auth functions are off a single function means that
> we need a view which has different options depending on the arg, e.g.:
> <h1>
> {{if request.args[0]=='register':}}
> Register
> {{elif request.args[0]=='login':}}
> Login
> {{pass}}
> </h1>
>
> We should have an example of this in the welcome app to avoid everyone
> having to reinvent this wheel.
>
> When I register() I get a message 'verification email sent' even when
> I've not yet set 'auth.settings.mailer=mail'
> - ideally user would be automatically logged-in (as per nemik's 
> Patch:http://groups.google.com/group/web2py/msg/175ceca92b19713b)
> I can login with the just-registered user (no email actually sent).
> Then I get redirected to the user/register screen which is unexpected.
>
> I'll keep hacking away :)
>
> F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to