With SVN:
# Non-members may check out a read-only working copy anonymously over
HTTP.
svn checkout http://web2py.googlecode.com/svn/trunk/ web2py-read-only


On Feb 16, 2:54 pm, Yannick <ytchatch...@gmail.com> wrote:
> Hello mate.
> Massimo you say:
>
> > With the latest trunk this will work.
>
> Where can i get the latest trunk so i can make the "register" and
> "login" work on the same page ?
>
> Thank You.
>
> Cheers,
> Yannick P.
>
> On Feb 15, 8:46 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > before
>
> > auth.define_tables()
>
> > you can do
>
> > auth.settings.table_user=....
>
> > to point it to your own user table with more fields.
>
> > Massimo
>
> > On Feb 15, 6:41 pm, blackthorne <francisco....@gmail.com> wrote:
>
> > > Thank you, good to know.
>
> > > What about...
> > > - If I want to add more fields to the user registration more specific
> > > to the application I want to create... how can I avoid having to
> > > create 2 forms (one for Auth and other for user attributes that I
> > > consider relevant to my application)? In other words, how can I
> > > customize the Auth forms?
>
> > > On Feb 13, 3:43 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > With the latest trunk this will work.
>
> > > > On Feb 13, 9:01 am, blackthorne <francisco....@gmail.com> wrote:
>
> > > > > Never mind my first question...
> > > > > I see I can do:
> > > > > return dict(form = auth.register(next="login"),form2 = auth.login
> > > > > (next="index"))
>
> > > > > On Feb 13, 2:47 pm, blackthorne <francisco....@gmail.com> wrote:
>
> > > > > > Yes thank you but notice 2 different questions:
> > > > > > - How can you have both login and register forms in the same page?
> > > > > > request.args[0] can never be both...
>
> > > > > > - If I want to add more fields to the user registration more 
> > > > > > specific
> > > > > > to the application I want to create... how can I avoid having to
> > > > > > create 2 forms (one for Auth and other for user attributes that I
> > > > > > consider relevant to my application)?
>
> > > > > > Thank you
>
> > > > > > On Feb 13, 8:05 am, Fran <francisb...@googlemail.com> wrote:
>
> > > > > > > On Feb 13, 3:34 am, blackthorne <francisco....@gmail.com> wrote:
>
> > > > > > > > How can I generate, in a single page, both login and register 
> > > > > > > > forms
> > > > > > > > since Auth() seems to generate them according the URL passed?
>
> > > > > > > All you need in the view is:
> > > > > > > {{=form}}
>
> > > > > > > I prefix mine with this to make it more user-friendly, which you 
> > > > > > > can
> > > > > > > adapt as you like:
> > > > > > > <h2>
> > > > > > > {{if request.args[0]=='login':}}
> > > > > > > Login
> > > > > > > {{elif request.args[0]=='register':}}
> > > > > > > Register
> > > > > > > {{elif request.args[0]=='profile':}}
> > > > > > > Profile
> > > > > > > {{pass}}
> > > > > > > </h2>
>
> > > > > > > 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