I would like to register users programmatically, so I can test my application with multiple users.
The way I thought of doing this was:
if db( db.auth_user ).count() == 0: alphabet = 'abcdefghijklmnopqrstuvwxyz' for letter in alphabet: db.auth_user.validate_and_insert( first_name=letter , last_name=letter , email='%s@%s.com'%(letter , letter) , username=letter , password='qwer' ) This however doesn't set the other tables about group membership etc.