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 <rochacbr...@gmail.com> wrote: > *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) >> ** crypt_pass = my_crypt(passw)[0] >> ** id_user= db.auth_user.insert( >> ** first_name=first_name, >> ** last_name=last_name, >> ** email = email, >> ** password = crypt_pass >> >> ** ) >> ** return id_user* > > > > Now create user with this: > > > *iduser = new_user('Chris','Mills','ch...@nobody.com','somepasswordhere')* > > > > On Mon, Nov 21, 2011 at 8:48 AM, Shiv <shiv.veerashe...@gmail.com> wrote: > >> 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 >> > > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > >