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

Changeset 379

Show
Ignore:
Timestamp:
06/25/05 09:56:04
Author:
rdelon
Message:

More slides for Europython

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/europython2005/index.html

    r378 r379  
    7272 
    7373<div class="slide"> 
     74<h1>Configuring CherryPy</h1> 
     75<ul> 
     76    <li>Through config file</li> 
     77    <li>Programmatically</li> 
     78</ul> 
     79</div> 
     80 
     81 
     82<div class="slide"> 
    7483<h1>Url -> object mapping</h1> 
    7584<ul> 
     
    91100<h1>Handling file uploads</h1> 
    92101<ul> 
    93     <li>TODO</li> 
     102    <li>File is stored on disk as a temp file</li> 
     103    <li>CherryPy returns a cgi.FieldStorage instance</li> 
     104    <li>Available attributes: file, filename, type, ...</li> 
    94105</ul> 
    95106</div> 
     
    97108<div class="slide"> 
    98109<h1>Manipulating cpg.request and cpg.response</h1> 
     110<ul> 
     111    <li>Ex: Reading the Host header from the request</li> 
     112    <li>Ex: Setting the responseCOntent-Type</li> 
     113</ul> 
     114</div> 
     115 
     116<div class="slide"> 
     117<h1>Using generators</h1> 
     118<ul> 
     119    <li>Returning a generator instead of a string</li> 
     120    <li>Returning a file object</li> 
     121    <li>Set Content-Length manually to stream data to the browser "on-the-fly"</li> 
     122</ul> 
     123</div> 
     124 
     125<div class="slide"> 
     126<h1>Using filters</h1> 
     127<ul> 
     128    <li>Ex: gzipFilter</li> 
     129    <li>Ex: encodingFilter, decodingFilter</li> 
     130    <li>Ex: staticContentFilter</li> 
     131</ul> 
     132</div> 
     133 
     134<div class="slide"> 
     135<h1>Using sessions</h1> 
    99136<ul> 
    100137    <li>TODO</li> 
     
    108145    <li>WSGI interface allows us to use a variety of setups: mod_python, FastCGI, IIS, ...</li> 
    109146    <li>Another option: behind Apache with mod_rewrite or mod_proxy (use Apache to serve static data directly)</li> 
     147</ul> 
     148</div> 
     149 
     150<div class="slide"> 
     151<h1>What's not included in CherryPy</h1> 
     152<ul> 
     153    <li>A form handling module</li> 
     154    <li>A templating system</li> 
     155    <li>An authentication system</li> 
     156    <li>... CherryPy is deliberately staying low-level</li> 
     157    <li>... If you need a higher-level framework, consider Subway or CherryObject (coming soon)</li> 
    110158</ul> 
    111159</div> 

Hosted by WebFaction

Log in as guest/cpguest to create tickets