Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 956

Show
Ignore:
Timestamp:
02/06/06 00:53:23
Author:
fumanchu
Message:

Less-confusing text in tut09_files.py docstring.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/tutorial/tut09_files.py

    r762 r956  
    3232Set "name" to the filename that you expect clients to use when they save 
    3333your file. Note that the "name" argument is ignored if you don't also 
    34 provide a "disposition" ("application/x-download" works in most cases). 
     34provide a "disposition" (usually "attachement"). You can manually set 
     35"contentType", but be aware that if you also use the EncodingFilter, it 
     36may choke if the file extension is not recognized as belonging to a known 
     37Content-Type. Setting the contentType to "application/x-download" works 
     38in most cases, and should prompt the user with an Open/Save dialog in 
     39popular browsers. 
    3540 
    3641""" 

Hosted by WebFaction

Log in as guest/cpguest to create tickets