ing and end. If you want something more
sophisticated you can provide your own filtering function. Read up
on Mako's filters:
http://www.makotemplates.org/docs/filtering.html
If you have a more specific example that may help to answer
your question.
--
Deron Meranda
http://deron.meranda.us/
-
rve the file with a content-type of
Content-Type: text/csv; charset=utf-8
You may also want to send a content-disposition header,
something like
Content-Disposition: attachment; filename="data.csv"
--
Deron Meranda
http://deron.meranda.us/
--
You received this message because you
work, and doing nothing special just
means that the user will have to wait for the entire PDF file
to finish downloading before anything gets displayed.
--
Deron Meranda
http://deron.meranda.us/
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss"
uot;location". Like line_number, column_number,
byte_offset (or character_offset), and perhaps a snippet of the raw
input data around where the error was found for context.
--
Deron Meranda
--~--~-~--~~~---~--~~
You received this message because you are su
e more sense to people than illegal control code?
Actually in general I kind of like it when parsers of any type return a snippet
of the offending source with the error, to provide context. And you can
always just pack more arguments into any of Python's error classes
to carry
of the best for being able to parse badly-formed JSON
(it has a toggleable strict/nonstrict mode); and it also generally gives
fairly descriptive error messages. Unfortunately though, not even
it will allow linefeeds inside of strings, even in it's loosest mode.
--
Deron Meranda
--~--~-~-
ge (in this case). Just another debugging tool at your disposal...
$ jsonlint -v z.json
z.json: line terminator characters must be escaped inside string
literals: u'\n\u0423\u0441...
--
Deron Meranda
--~--~-~--~~~---~--~~
You received this message because you
ncluded simplejson (although
being renamed). But most of the various modules by all the
authors do a pretty decent job of JSON handling now.
--
Deron Meranda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pyl
this, I can try to clean this
stuff up and perhaps turn it into a more polished python
package and publish it on PyPI (easy_install). Let me know.
--
Deron Meranda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
be in
a Text-type node.
If you want to avoid the extra newlines being output, be sure to end
your template lines with a trailing backslash, to suppress the newlines.
In fact, unless you need readability, it's probably best to elimiate
ALL extra w
c/selinux/config).
Or *better* is to allow your files to be read by Apache, something
like,
chcon -r -t httpd_sys_content_t /home///
Deron Meranda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pylon
11 matches
Mail list logo