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.