SQL Query via python
Frithiof Andreas Jensen
frithiof.jensen at die_spammer_die.ericsson.com
Tue May 24 08:16:50 EDT 2005
"Jeff Elkins" <jeffelkins at earthlink.net> wrote in message
news:mailman.305.1116740808.8733.python-list at python.org...
> Just as an fyi:
>
> In one weekend I have gone from knowing zip about SQL/Python to
implementing
> code on my personal server that emails info to family about birthdays and
> such.
Actually - http://www.pythonweb.org/ will handle the SQL (and many other
tasks) in a much simpler way!
If you do try the web.database.object examples, be aware that the docs are
not entirely tracking the code; f.ex. databases have no "type" parameter;
it's an "adapter"
i.e.
connection = web.database.connect(type="sqlite",database="object-simple.db")
should be:
connection =
web.database.connect(adapter="sqlite",database="object-simple.db")'
there are probably others - it's good to see what the parameters are in
"idle" if something does not work as advertised.
Overall, Pythonweb is very impressive work IMO.
More information about the Python-list
mailing list