> > Thanks for that but it doesn't really answer my question. When I return > dict(results=results), I want to pass that to a script, lets say > 'process.py' to tokenize it etc. My question is: Do I create a new > controller called process.py (which won't have a corresponding HTML page), > or do I create a model? My app doesn't have a database, it doesn't need > one. I am dealing with one user input term that returns 3 sets of json data > which will be parsed and output directly. It doesn't need to be stored. Can > you give me any info regarding that. I'm just not sure where I should be > creating my .py files to do the processing. >
If you need to call other functions from your controller action, you can put those other functions inside (a) the same controller (any function in a controller that starts with a double underscore or takes arguments will not be exposed as a URL), (b) a model file, or (c) a module (from which you would then import it -- see http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules ). Anthony