Re: [web2py] Register user programmatic way

2011-11-21 Thread Vinicius Assef
How about including this function in Auth? -- Vinicius Assef. On Mon, Nov 21, 2011 at 10:43 AM, VIREN PATEL wrote: > Hi Bruno, > > Thanks a lot that was really helpful and solved mine and Shiv problem > > Thanks, > Viren > > On Mon, Nov 21, 2011 at 5:35 PM, Bruno Rocha wrote: >> >> Create this

Re: [web2py] Register user programmatic way

2011-11-21 Thread VIREN PATEL
Hi Bruno, Thanks a lot that was really helpful and solved mine and Shiv problem Thanks, Viren On Mon, Nov 21, 2011 at 5:35 PM, Bruno Rocha wrote: > *Create this function in some model* > * > * > >> *def new_user(first_name, last_name, email, passw): >> **users = db(db.auth_user.email==

Re: [web2py] Register user programmatic way

2011-11-21 Thread Bruno Rocha
*Create this function in some model* * * > *def new_user(first_name, last_name, email, passw): > **users = db(db.auth_user.email==email).select() > **if users: > **return users[0].id > **else: > **my_crypt = CRYPT(key=auth.settings.hmac_key) > **

[web2py] Register user programmatic way

2011-11-21 Thread Shiv
Hi, I want to import the user details from XL file and register in the user_auth table. If you can share info on how to register the users programmatic way, it will be of great help. Thanks & Regards Shiv