WML examples using mod_python?

Richie Hindle richie at entrian.com
Mon Apr 28 11:37:39 EDT 2003


Hi Grant,

> Any other python-related WML examples (normal CGI, etc.) would
> also be welcome. [...] an IMAP to WML gateway is the project I
> have in mind.

http://www.entrian.com/wapmail/ is a POP3 to WML gateway written in
Python as a CGI script.  That page includes an online demo that runs
in your web browser, and there's a link to the source (about 450 lines
plus documentation) at the bottom of the page.

The web demo was easy to add once the WML stuff was finished because
there's no WMLScript in the output, so it's just a matter of sending
out different preamble and, er, postamble.  The actual content is
identical between HTML and WML - nice for debugging and testing if you
can get away with it.

One day I'll integrate Spambayes into it.  8-)

-- 
Richie Hindle
richie at entrian.com




More information about the Python-list mailing list