After a night sleep ... I woke up ... read the code again .. and bingo .. no errors .. it is almost fixed with this :
> ... > if isinstance(fields,tuple): > mytables = ['auth_user','user_info'] > form_fields = [] > [form_fields.extend([db[t][f] for f in db[t].fields if f in > fields]) for t in mytables] > form = SQLFORM.factory(*form_fields) > if form.accepts(request,session): > session.register.update(form.vars) > redirect(URL(args=step+1)) > else : > for n in xrange (0, 3): > if db.user_info.user_image == defaultuserpics[n]: > db.user_info.user_picture.default = lambda: > open(os.path.join(request.folder, 'static','images/'+ defaultfoto[n]), > 'rb') > > db.auth_user.insert(**db.auth_user._filter_fields(session.register)) > > db.user_info.insert(**db.user_info._filter_fields(session.register)) > session.flash = T('Signup completed') > redirect(fields) > return dict(form=form,step=step) > > now ...the data made it to both tables .. but the image chosen by the subscriber does not make it to the table !!??? ... and the value of db.user_info.the_user is "None" when I checked in the tables values ... it should not be so ... !??? ... the tables should be linked or properly referenced ! --