So, if harry created a simple wiki, now I created a simple blog using web.py. It turns out to be a very fascinating moment for me. The feelings just like the first time I wrote my php script. While I'm not sure whether webpy would be the right platform for me to develop application in python, it sure have let me learn python in the fun way. Good work aaron !
As usual, I've put the whole code in the wiki. Please note that the code was extremely simple, just to see if it's work. The template was a mess. No need to say how much I hate template. Cheetah probably has some way to organize template but I don't even looked at their documentation. Should I say again that I hate template :-)

12 comments
1. kenmin (9 January, 2006 - 08:40) says:
Hi Kamal,
Damn, you are one step (or many steps) ahead of me. I am just about to do the same thing (a blog in web.py) this coming week.
Anyway, nice code, clean and simple.
2. mypapit (9 January, 2006 - 09:18) says:
hey kenmin!! where's your http://kenmin.org??
3. kamal (9 January, 2006 - 10:33) says:
nice to hear some words from you kenmin. so, you were into web.py also ? interesting right ? this is the first python framework that let me produced something usable, yet retaining the excitement to explore it more. btw, where's your blog :-) -kamal-
4. Sam (11 January, 2006 - 19:18) says:
Also very useful to me (in addition to the very nice and generous code and template example) would be your configuration information -- that is, how did you configure web.py? Are you running it as Fast CGI, etc?
Excellent work,
-Sam
5. Sam (11 January, 2006 - 19:24) says:
Oh, also, the db schema would be very useful here (table create commands).
-Sam
6. Sam (11 January, 2006 - 19:34) says:
the template for style.css would also be needed for completion.
7. me (12 January, 2006 - 04:24) says:
hi sam, I'm currently offline. writing this from my cellphone. will get back to you soon.
8. Aapo Laakkonen (12 January, 2006 - 11:56) says:
Thank you very much for sharing the code! Looks really nice and works as a great tutorial to web.py. I have used many web development frameworks and languages in the past (eg. Java: Struts, WebWork, Spring Framework, Tapestry, JPublish, Maverick, JSP/Servlets, etc., C#: ASP.NET, Mono Rail, PHP: Mojavi, Ruby: RoR) and I have read something about all the others I didn't mention (I have missed many for sure). Somehow all the frameworks I have tried have not felt right on what I have been looking for. web.py comes very close on what I think is the right approach to web-development. It's clean mean and simple and it really does not get on your way. There is ofcourse something to add to web.py but I think that the main strength of it is that it has no intention to be something more than it is. It's not giving you solution to every problem in web development but on the field where it does so, it does it the right way. I for example can easily choose whatever data access strategy I need and it would work jsut great in web.py. The same goes for localization etc. web.py is really about KISS and it's monolithic nature fits great as long as Aaron does not add the cruft on it. web.py is kinda unix style where you have separate tools that do not try to do everything but by combining them you can create very nice stuff (loosely coupling).
Great!
9. Harry Fuecks (12 January, 2006 - 12:03) says:
Nice stuff.
...of course everyone's got an opinion...
First, on the way you're using cookies, that looks pretty insecure to me - unless I'm missing something, aren't the POST methods open for anyone to POST to? Also just checking that a cookie (as in add.GET) exists is going to be easy to exploit. Wonder if there's an off-the-shelf Python session's library there?
The other thing is more a matter of opinion / experiment and what I was aiming at here: Who GETs REST
Never put verbs in URLs
I need to put up thoughts on that web.py wiki but I more or less managed to avoid any verbs in those URLs and, in particular, note how the WikiEditor class is seperated from the resource it posts to. All of that blends into those MVC Oil and Water musings.
10. Anonymous (20 January, 2006 - 16:21) says:
Could you Zip all the contents of the web.py blog app and upload it to your homepage?
There is some info needed to get this up testing and running.
11. Anonymous (20 January, 2006 - 16:23) says:
By the way, thanks in advance if you upload it or not, you are already doing something positive posting the code.
12. kamal (21 January, 2006 - 00:34) says:
thanks guys for all the feedback. I'd really appreciated it, esp harry, your remark on 'never putting verb in url' make sense and now I have some idea to work on. I'm planning to work on the complete version of the blog and more ambitiously, probably converting this blog to use webpy. but I'm still on 'vacation mode' right now, will start doing serious work when I get back to my place.
-kamal-