One for the Guru's!

Hi,

I am trying to write a natural language interface to Db system. I have written a GUI in wxPython (Final.py), taken a parser (newparser.py) and written a simple Pyhton script (Server_Connect.py). I have attached the code below for you to view.

I would like some advice about how to begin to pass the string input from the GUI to my sql script for processing. I would like to query my train_timetable database, attempting to use natural language to interface the DB. I am confused as to how to pass the string input from the parser to the SQL (Server_Connect.py) script.

Thank you so much in advance for any tips. (I am kinda new to python, my programming is okay, but no fantastic, hope you are sympathetic!)

Sham

newparser.py (325 KB)

Server_Connect.py (4.71 KB)

GUI.py (15.1 KB)

···

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger

A. T. wrote:

I have attached the code below for you to view.

Please don't send such huge files to a mail list, especially not twice! If you want somebody to take a look at anything more than a few K in size then put it on a http or ftp server and send a link. You just sent 700K of stuff to over 800 people, and 99.99% of which don't want to see it, and at least some of them pay for their internet connection by the byte.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!