]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/rst_fails_on_file_containing_only_a_number.mdwn
rename urlpath hook into tweakurlpath for consistency's sake
[git.ikiwiki.info.git] / doc / bugs / rst_fails_on_file_containing_only_a_number.mdwn
1 If you create a foo.rst containing only a number, such as "11", rendering
2 results in the following error being thrown. (Now that I've fixed the error
3 throwing code..):
5         exceptions.TypeError:coercing to Unicode: need string or buffer, int found
7 --[[Joey]]
9 > Does this patch against proxy.py help?
11     index 5136b3c..545e226 100755
12     --- a/plugins/proxy.py
13     +++ b/plugins/proxy.py
14     @@ -88,7 +101,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object):
16         @staticmethod
17         def _write(out_fd, data):
18     -        out_fd.write(data)
19     +        out_fd.write(str(data))
20             out_fd.flush()
22         @staticmethod
24 > No, still the same failure. I think it's failing parsing the input data,
25 > (which perl probably transmitted as an int due to perl internals)
26 > not writing out its response. --[[Joey]]