Another pretty web framework is Bottle (<a href="http://bottle.paws.de">http://bottle.paws.de</a>). It is very easy to setup and use. I use it to tasks like this one you want.<div><br></div><div>[]s</div><div>iuri</div><div>

<br><br><div class="gmail_quote">On Thu, Sep 16, 2010 at 3:01 PM, MRAB <span dir="ltr"><<a href="mailto:python@mrabarnett.plus.com">python@mrabarnett.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">On 16/09/2010 18:19, Hans wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 15, 5:33 pm, James Mills<<a href="mailto:prolo...@shortcircuit.net.au" target="_blank">prolo...@shortcircuit.net.au</a>>  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Sep 16, 2010 at 10:14 AM, Hans<<a href="mailto:hans...@gmail.com" target="_blank">hans...@gmail.com</a>>  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm new to this area. Please allow me to ask some (maybe stupid)<br>
questions.<br>
</blockquote>
<br>
Without reading the rest of your post too much. Designs are up to you,<br>
I can't comment.<br>
<br>
I can only share in a fairly common view, and that is, we'd encourage<br>
you to use a web framework<br>
as opposed to plain old CGI.<br>
<br>
cheers<br>
james<br>
<br>
--<br>
-- James Mills<br>
--<br>
-- "Problems are solved by method"<br>
</blockquote>
<br>
Hi James,<br>
<br>
Thanks for response.<br>
Maybe I did not make my question clear. I never tried python web<br>
programing before, so I want to start from CGI.<br>
<br>
I read something about web framework like django, but seems it's a<br>
little bit complicated. my task is actually very simple: get search<br>
string from input, and then search database, print search result. I<br>
thought CGI should be good enough to do this.<br>
<br>
I don't have any idea about how to organize those cgi codes, so what<br>
I'm asking is:<br>
<br>
1. do I have to have each single file for each hyper-link? Can I put<br>
them together? how?<br>
2. how can I pass a db_cursor to another file? can I use db_cursor as<br>
a parameter?<br>
<br>
</blockquote></div></div>
I recently wrote a web-based program using CherryPy, which was very<br>
straightforward. That might suit your needs.<div><div></div><div class="h5"><br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div>