Okay, in that case....you pass the function to the view as you would any other variable. For example:
return dict(form=form, rows=rows, file_lookup=file_lookup) On Nov 10, 4:57 pm, lucas <sjluk...@gmail.com> wrote: > yes, i wrote a function in main.py which is an added controller in my > application. under main.py, i have a function called file_lookup. i > am trying to use file_lookup in a view between the standard delimitors > {{ and }}. except that web2py is erroring out saying that file_lookup > is not defined. so i am thinking that i have to pass the function > reference off to a global storage so that when web2py renders the > view, it has a reference is file_lookup. better? lucas