[web2py] Re: web2py Issues

2011-03-21 Thread Neveen Adel
Thanks a lot Kevin for your time & explanation :) On Mar 21, 3:44 pm, Kevin Ivarsen wrote: > One other thought - if web2py wasn't rejecting the form based on the formkey > after redirect, I think you would actually be running into an infinite > redirect loop here the way things are currently str

[web2py] Re: web2py Issues

2011-03-21 Thread Kevin Ivarsen
One other thought - if web2py wasn't rejecting the form based on the formkey after redirect, I think you would actually be running into an infinite redirect loop here the way things are currently structured! Cheers, Kevin

[web2py] Re: web2py Issues

2011-03-21 Thread Kevin Ivarsen
Why do you need to redirect back to the same view to display the error? The normal way of doing this is basically what you currently have: if there is an error in the form in the POST, immediately redisplay the form. I think the reason this is failing is because of the formkey technique used by

[web2py] Re: web2py Issues

2011-03-21 Thread pbreit
This is hard to follow. Can you isolate the parts that don't work? Are you able to radically simplify the logic?

[web2py] Re: web2py Issues

2011-03-20 Thread Neveen Adel
Hello DenesL, Thanks for your reply. For Issue#2: inside get_CIs function the request.vars.WO_cpp_id is None which represent the selected id from first dropdown. could you please advice me what the problem? On Mar 20, 6:24 pm, DenesL wrote: > On Mar 20, 11:32 am, Neveen Adel wrote: > > >

[web2py] Re: web2py Issues

2011-03-20 Thread Neveen Adel
Hello Kevin , Thanks a lot for your reply. what i want to do is : def items(): wo = db(db.WO.id == request.vars.wo_id).select()[0] checkList_items = db(db.checklist_item.cl_id == request.vars.cl_id).select(orderby="checklist_item.id DESC") form = SQLFORM(SQLDB(None).define_table('m

[web2py] Re: web2py Issues

2011-03-20 Thread DenesL
On Mar 20, 11:32 am, Neveen Adel wrote: > Hello, > >  Issue#1: > >   I want make server validation, but when return the page again i want > to be had the entered values: >   e.x: >    if request.vars[str(item.id)] == "NO" and > request.vars["comment"+str(item.id)] == "": >                      

[web2py] Re: web2py Issues

2011-03-20 Thread Kevin Ivarsen
Hi Neveen, Without a bit more context I'm having trouble determining the problem. In principle you should be able to pass vars=request.vars to URL and have them show up in the redirected URL. For example: def func1(): if request.vars.value == "hello": return "you submitted hello"