Make Your Python web.py more MVC Style

Hi, my name is Kandar. I love web.py because it so extremely simple. You can see the sample on the code below:

import web
        
urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:        
    def GET(self, name):
        if not name: 
            name = 'World'
        return 'Hello, ' + name + '!'

if __name__ == "__main__":
    app.run()

So then I curious, what if you have lot of classes? Are you still wanna put it all in one file (code.py for example)? For me its a bed idea. So I decide to write some module to hendler more MVC style in your web.py apps.

First you may have to se the samples. Open this following urls:

So this is my root folder and how its sources looks like:

controllers/
- home.py
- __init__.py
- kandar.py
- sources.py
models/
- data_sample.py
- __init__.py
views/
- index.html
- __init__.py
- mika.html
- the_data.html
web/
(all exactly same with the original sources)
index.py
web_controller.py

Thats it! Now your wep.py apps more MVC style! Any comments? write here http://www.kandar.info/index.php/python/make-your-web-py-python-framework-more-mvc-style