Not 100% sure of your problem....but do you output session.flash,
response.flash, and register.errors anywhere in your view?  what you
describe sounds like a validation problem, but if you don't output the
register.errors you don't see the what the problem is.  (at least i
had this difficulty when first working with custom forms)

good luck!

cfh

On May 4, 10:13 am, waTR <r...@devshell.org> wrote:
> I am wondering if there is a way to debut web2py apps. I would like to
> see what functions are being called and what data is being passed to
> them.
>
> I am trying to get auth to work with form.custom.widget, but everytime
> I submit, the widget doesn't insert the record into the database, it
> simply refreshes the page and brings me back to original page with the
> entire output of the post_vars object in each form field.
>
> Here is my code:
> CONTROLLER:
> register = auth.register()
>         register.element(_name='email')['_class'] = "frm_field"
>         register.element(_name='first_name')['_class'] = "frm_field"
>         register.element(_name='last_name')['_class'] = "frm_field"
>         register.element(_name='password')['_class'] = "frm_field"
>         register.element(_name='password_two')['_class'] = "frm_field"
>         register.element(_name='city')['_class'] = "frm_field"
>
> VIEW:
> {{=register.custom.begin}}
>
>                 <div class="span-3 register_name">Your Email:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.email}}</div>
>
>                 <div class="span-3 register_name">New Password:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.password}}</div>
>
>                 <div class="span-3 register_name">Re-enter Password:</div>
>                 <div class="span-5 
> last">{{=register.element(_name='password_two')}}
> </div>
>
>                 <div class="span-3 register_name">Your First Name:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.email}}</div>
>
>                 <div class="span-3 register_name">Your Last Name:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.email}}</div>
>
>                 <div class="span-3 register_name">Your City:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.city}}</div>
>
>                 <div class="span-3 register_name">Rating:</div>
>                 <div class="span-5 
> last">{{=register.custom.widget.rating_total}}</
> div>
>
>                 <div class="span-3 register_name cheight-20"></div>
>
>                 <div class="span-5 last"><input type="submit" 
> class="register_btn"
> value="Sign Up"></input></div>
>
>                 {{=register.custom.end}}

Reply via email to