Re: Mako and whitespace

2010-10-06 Thread Deron Meranda
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/ -

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Deron Meranda
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

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Deron Meranda
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"

Re: simplejson 2.0 @ pylons 0.9.7

2009-04-02 Thread Deron Meranda
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

Re: simplejson 2.0 @ pylons 0.9.7

2009-04-02 Thread Deron Meranda
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

Re: simplejson 2.0 @ pylons 0.9.7

2009-04-02 Thread Deron Meranda
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 --~--~-~-

Re: simplejson 2.0 @ pylons 0.9.7

2009-04-02 Thread 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

Re: simplejson installation failure

2008-11-07 Thread Deron Meranda
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

Re: Serving Files w/ multipart ranges

2008-03-24 Thread Deron Meranda
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 &

Re: Returning XML with Myghty

2007-03-29 Thread Deron Meranda
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

Re: Odd deployment problem with mod_python

2007-03-19 Thread Deron Meranda
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