to your console.

On 17 Mart, 13:41, mohammed al-moustady <[email protected]>
wrote:
> thank you hamdy but it is irrelevant to the code.
>
> BTW
> mdipierro
>
> do you mean print statement in the code itself? I thought it was s
> special function..
> ok even If I do these print statements were would it print to?
>
> On Mar 17, 10:16 am, "hamdy.a.farag" <[email protected]> wrote:
>
>
>
> > Hi Mohammed,
>
> > I faced a problem like this one b4 and simply as mdipierro said it was
> > a logic problem
> > try the validation function with the minimal code that works then add
> > line by line and check whether it works or not
> > then you'll detect when it fails
>
> > Oh BTW
>
> > if form.accepts(request.vars,session, onvalidation=validation):
> >         response.flash='new record inserted'
> >  records=SQLTABLE(db().select(db.reservation.ALL))
> >  dt=db(db.reservation.Date==form.vars.Date).select()
> >   return dict(form=form,records=records,dt=dt)
>
> > as you see the line :
> > dt=db(db.reservation.Date==form.vars.Date).select()     is out of the
> > scope of the if statement and thus form.vars has no values
> > this may be your problem
>
> > Regards,
> > Hamdy

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to