Hi Everyone,

I have values stored in a web2py table (db.settings) that I'd like to pass 
into python functions to later on (via some processing) get results. 
 Here's an example


<db.settings>
==========================
| db.settings.id  |  db.settings.key  |
| ----------------------|------------------------- | 
|    1                 |    abc                 |
| ----------------------|--------------------------|


<somepythonscript.py>
========================
def do_something(data):
   ...
   x = something_with_json_fetching(data)
   return x



I want to grab the "db.settings.key" and push it into my python function 
"do_something" to return the "x" results back to the html.
The next step (doesn't needed to be answered in this question) I'd like to 
push the x results (which is JSON) into a database table entry...I'm 
working on that part, I think I know what to do there.

Can anyone help me out?

Thanks,
-Doug Jr.

-- 



Reply via email to