Re: comments.py patch
Michael Guntsche <mike-Z92qn3yYq0hWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Nov 16, 2007, at 16:29, Lance Levsen wrote: > Hey Michael, > >> We should use tools.urlencode_text(...) for this, since we really >> want to >> have an urlencoded entry here. This should work both in 1.4.x and >> current >> HEAD. > > I agree, but it isn't working. > > 2007-11-15 22:16:41,457 [ERROR] comments: error sending email: > ['Traceback (most recent call last):\n', ' File > "/etc/pyblosxom/plugins_1.4 /comments.py", line 516, in send_email\n > curl = config[\'base_url\']+\'/\'+entry[\'file_path_urlencoded\']\n', > "TypeError: cannot concatenate 'str' and 'NoneType' objects\n"] > > Hi Lance, As I said, the correct change would be to use tools.urlencode_text (entry['file_path']) in comments.py instead of 'file_path_urlencoded'. Cheers, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pyblosxom-devel mailing list Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
smime.p7s
(application/pkcs7-signature, 2.4 KB) - not displayed