On Tue, Apr 13, 2010 at 2:55 PM, Krishnakant Mane <[email protected]> wrote:
> No, the pdf files are going to be 1 page or in rare cases at the most 2
> pages.

Definitely no need to mess with byte-ranges then.  That's really only
something to look at once you're getting into the >100 page
documents.


> And by any chance is some thing similar possible for open office
> spreadsheets?

If you don't need much except rows and columns, your easiest
choice is to just serve up CSV files.  Python even has a csv
module ... http://docs.python.org/library/csv.html

You'll want to serve 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 are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to