Need of Help!
I have some experience in programming with C#, Java, SQL on Windows.
This is the first time I have to program in Python on Linux (Gutsy Gibbon) OS.
My task is to write middle ware for a small project. The front-end will spit XML to the middle ware, which needs to be traversed and then inserted in to the MySQL database base (on Apache Server). This process is suppose to flow back and forth from the DB to the front-end and Front-end to the DB.
I am very much confused by the concept of Python Modules (.py files) and Python Classes and the fact that everything in Python is an object. Due to this I am not able to think of how I should write this middle ware in Python. I have been able to work with minidom for XML parsing and I have been able to work woth MySQL and Python separately..
But, how this all will work together is something of a blank!
Whether I should write classes in Python or just write Modules(.py) files with functions in it is my biggest question.
I will appreciate if someone can please give me a idea of what approach should I use and it would be great if someone has some basic sample code which achieves this.
I got some idea from this article but its still not clear:
Please help me out!!