[web2py] Re: variable include

2010-12-28 Thread Luther Goh Lu Feng
If the variables to be accessed from the original view are not needed to be passed back to python, it is possible to store the variables in javascript, and then access the variables from different components. To view the problem differently, you may wish to look at http://flowplayer.org/tools/dem

[web2py] Re: variable include

2010-12-28 Thread mattynoce
great call, luther. thank to you and ron for the help. here was the solution: 1) have the main view code call a component i called "stepFunc" 2) have stepFunc then render the appropriate mini-view [views] ** first, i defined a view for each step. so there's a folder at default/views/step and it

[web2py] Re: variable include

2010-12-28 Thread Luther Goh Lu Feng
Try using http://www.web2py.com/book/default/chapter/13#Components-and-Plugins I think it should be what you are looking for. On Dec 29, 3:05 am, ron_m wrote: > Its ugly but you must have a finite and small number of nextStep targets > > {{if nextStep == 'step1':}} >   {{include 'step1.html'}} >

[web2py] Re: variable include

2010-12-28 Thread ron_m
Its ugly but you must have a finite and small number of nextStep targets {{if nextStep == 'step1':}} {{include 'step1.html'}} {{elif nextStep == 'step2':}} {{include 'step2.html'}} .. will get you going but introduces a maintenance issue if you add a step later that ou have to remember to