Changeset 378
- Timestamp:
- 06/25/05 08:51:53
- Files:
-
- trunk/docs/europython2005/index.html (modified) (3 diffs)
- trunk/docs/europython2005/s5/theme/cherryPyLogo.png (added)
- trunk/docs/europython2005/s5/theme/framing.css (modified) (1 diff)
- trunk/docs/europython2005/s5/theme/pretty.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/europython2005/index.html
r343 r378 46 46 <h1>Introduction</h1> 47 47 <ul> 48 <li> OOP framework for doing web development</li>48 <li>Pythonic, object-oriented web development framework</li> 49 49 <li>Runs everywhere python runs</li> 50 50 <li>Requires Python-2.3 or later</li> … … 58 58 <li>Exposing objects</li> 59 59 <li>Built-in HTTP server</li> 60 <li>"development" environment: autoreload, debug information , validation</li>60 <li>"development" environment: autoreload, debug information 61 61 </ul> 62 62 </div> … … 66 66 <ul> 67 67 <li>Passing parameters to methods</li> 68 <li>All parameters (except file uploads) are passed a strings or lists of strings</li> 69 <li>GET or POST parameters are passed the same way</li> 68 70 </ul> 69 71 </div> 70 72 71 73 <div class="slide"> 74 <h1>Url -> object mapping</h1> 72 75 <ul> 73 <li>Any questions?</li> 76 <li>Using multiple methods</li> 77 <li>Using multiple classes</li> 78 <li>Using the "default" method</li> 79 <li>Using positional arguments for REST URLs</li> 74 80 </ul> 81 </div> 82 83 <div class="slide"> 84 <h1>Using OOP</h1> 85 <ul> 86 <li>Example: using OOP to provide a constant header/footer</li> 87 </ul> 88 </div> 89 90 <div class="slide"> 91 <h1>Handling file uploads</h1> 92 <ul> 93 <li>TODO</li> 94 </ul> 95 </div> 96 97 <div class="slide"> 98 <h1>Manipulating cpg.request and cpg.response</h1> 99 <ul> 100 <li>TODO</li> 101 </ul> 102 </div> 103 104 <div class="slide"> 105 <h1>Deploying your site for production</h1> 106 <ul> 107 <li>Built-in HTTP server: OK, but no HTTP/1.1 or SSL (yet)</li> 108 <li>WSGI interface allows us to use a variety of setups: mod_python, FastCGI, IIS, ...</li> 109 <li>Another option: behind Apache with mod_rewrite or mod_proxy (use Apache to serve static data directly)</li> 110 </ul> 111 </div> 112 113 <div class="slide"> 114 <h1>Resources</h1> 115 <ul> 116 <li>http://www.cherrypy.org</li> 117 <li>Documentation: tutorial, FAQ, recipes, ...</li> 118 <li>Mailing lists</li> 119 <li>IRC channel: #cherrypy on OFTC</li> 120 </ul> 121 122 <div class="slide"> 123 <h1>Near future of CherryPy</h1> 124 <ul> 125 <li>CherryPy-2.1 coming out soon (*lots* of new features)</li> 126 <li>CherryPy book (online only for now) coming soon</li> 127 <li>Lots of activity at the moment ... More and more contributors</li> 128 <li>But we could still use more: feel free to help :-)</li> 129 </ul> 130 </div> 131 132 133 <div class="slide"> 134 <h1>Any questions ?</h1> 75 135 </div> 76 136 trunk/docs/europython2005/s5/theme/framing.css
r324 r378 4 4 to help you with the rearrangement process. */ 5 5 6 div#header, div#footer, div.slide {width: 100%; top: 0; left: 0;}7 div#header {top: 0; left: 0; z-index: 1;}6 div#header, div#footer, .slide {width: 100%; top: 0; left: 0;} 7 div#header {top: 0; left: 5px; z-index: 1;} 8 8 div#footer {top: auto; bottom: 0; width: 100%; z-index: 5;} 9 div.slide {top: 0; width: 88%; padding: 1em 7% 2em 5%; z-index: 2;}9 .slide {top: 0; width: 88%; padding: 1em 7% 2em 5%; z-index: 2;} 10 10 11 div#controls {bottom: 1em; left: 0; width: 100%; text-align: center; z-index: 1000;} 11 12 div#controls {position: fixed; left: 0; width: 100%; top: 0; padding-top: 0.5em; z-index: 10; text-align: center;} 12 13 div#controls form {margin: 0; padding: 0;} 13 14 14 #currentSlide {position: absolute; left: 0; bottom: 0.5em; z-index: 10; 15 width: 100%; text-align: center;} 15 #navLinks, #navList {display: inline;} 16 17 #currentSlide {position: fixed; right: 1.5em; top: 0.5em; z-index: 20; text-align: right;} 16 18 html>body #currentSlide {position: fixed;} 17 19 trunk/docs/europython2005/s5/theme/pretty.css
r324 r378 1 1 /* 2 Theme: i18n 3 Eric A. Meyer (http://meyerweb.com/) 4 Theme placed under CC by-sa 2.0 license 2 Theme: AAM 3 Richard Cooper 5 4 */ 6 5 7 body {background: # 95A7D4 url(bg-slide.jpg) 100% 100% no-repeat; color: #210; font: 28px Arial, sans-serif;}6 body {background: #FFFFFF 50% 0% no-repeat; color: #210; font: 28px Arial, sans-serif;} 8 7 a {text-decoration: none; color: #336; border-bottom: 1px dotted;} 9 8 h1, h2, h3, h4, h5, h6 {font-size: 1em; margin: 0;} … … 13 12 li {margin-bottom: 0.66em;} 14 13 li li {margin: 0.33em 0; font-size: smaller;} 14 div>ul {margin-top: -0.33em;} 15 15 16 #header {background: url( bg-shade.png); border-bottom: 1px solid #333;16 #header {background: url(cherryPyLogo.png) 0 100% no-repeat; border-bottom: 1px solid rgb(81,119,80); 17 17 padding-bottom: 2em;} 18 #footer {background: url(bg-shade.png); color: #BBB; border-top: 1px solid #333;}18 #footer {background: rgb(81,119,80); color: #FFFFFF} 19 19 #header, #footer {font-size: 0.5em;} 20 20 #footer h1, #footer h2 { padding: 0.5em 0.75em; … … 23 23 #footer h2 {position: absolute; bottom: 0; right: 0;} 24 24 25 #controls {font-size: 0.75em;} 26 #navList {margin-top: 3px;} 27 #navLinks a {margin: 0 0.33em; padding: 0 0.25em; 28 border: 1px solid; border-color: #CCD #556 #556 #CCD; 29 background-color: #8597C4;} 25 #controls {font-size: 0.5em;} 26 #toggle {font-size: 0.9em;} 27 #navLinks a {margin: 0 0.33em; padding: 0 0.25em; color: rgb(81,119,80); border-bottom: none;} 30 28 31 29 #currentSlide {font-size: 0.5em;} 32 #currentSlide span {font-size: 13px; color: rgb(49%,47%,66%);} 33 #currentSlide #csSep {display: none;} 34 #currentSlide #csHere {font-weight: bold;} 35 #currentSlide #csHere:before {content: "#"; font-weight: normal;} 36 #currentSlide #csTotal:before {content: " of ";} 30 #currentSlide span {font-size: 13px; color: rgb(81,119,80);} 37 31 38 32 .slide h1 {font-size: 1.66em; line-height: 1; letter-spacing: -1px; 39 margin: 0 -15% 1em 0; padding: 0.5em 15% 0.06125em 0; border-bottom: 0.06125em solid rgb(90,94,120);}33 margin: 0 -15% 0.5em 0; padding: 0.5em 15% 0.06125em 0; border-bottom: 0.06125em solid rgb(81,119,80);} 40 34 #slide0 h1 {border: none; font-size: 2.25em; letter-spacing: 0; margin: 3em 0 1.5em;} 41 35 #slide0 h3 {margin: 0.5em 0 0;} 42 36 #slide0 h4 {margin-top: 0; font-size: smaller;} 43 44 .slide .current {color: #003; text-shadow: 0 0 0.25em #9AABD7;}

