Re: [web2py] Pre-populate profile form

2012-08-20 Thread Daniel Gonzalez
Thanks Johan, For reference, here is the link. Unfortunately that does not help me, since it works directly with the backend, but I want to pre-populate the form that the user is going to submit. Besides, that

Re: [web2py] Pre-populate profile form

2012-08-20 Thread Johann Spies
Search the book for "Populating database with dummy data" Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) --

[web2py] Pre-populate profile form

2012-08-20 Thread Daniel Gonzalez
Hi, I am trying to pre-populate the profile form with some random data, which I am using for testing, like this: def random_pre_populate(form): register_data = RegisterData().random() form.vars.first_name = register_data['first_name'] form.vars.surname1 = register_data['surname1']