Hi all,

i've tried using db_wizard_populate to insert the users and it's
passwords, in the previous version it's work fine.
did anyone have an idea to fixed it?

thanks a lot before.

ex.

# models/db_wizard_populate.py
from gluon.contrib.populate import populate
if db(db.wiki).isempty():
    db.auth_user.bulk_insert([{'first_name' : 'a',
                               'last_name' : 'a',
                               'email' : 'a...@a.com',
                               'password' :
db.auth_user.password.validate('a')[0]},
                              {'first_name' : 'b',
                               'last_name' : 'b',
                               'email' : 'b...@b.com',
                               'password' :
db.auth_user.password.validate('b')[0]}])

Reply via email to