Re: Re: Two suggestions on comments
Ted Leung <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Sauria Associates, LLC |
| Message-ID | <[email protected]> |
On 9/7/2003 8:27 PM, Wari Wahab wrote:
>>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
>>
>>
>
>I'll get Ted to deal with this. What if a fella has ftp:// or gopher://
>as his url (though unlikely).
>
>
>
I'm in the home stretch for my book, so it'll be after 9/22, post 0.8 (I
hope)
Ted
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf