Two suggestions on comments
Joseph Reagle <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | MIT |
| Message-ID | <[email protected]> |
1. It'd be nice if comments had IDs (instead of names, which are being
deprecated in XHTML), but unfortunately IDs can't begin with numbers, I
suggest starting it with a underscore "_" or "c" (for comment).
2. Normalize their URL if they don't provide "http://" . Something like:
# Check if the form has a URL
url = (form.has_key('url') and [form['url'].value] or [''])[0]
if url[:7] != 'http://': url = 'http://' + url
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf