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

Changeset 1498

Show
Ignore:
Timestamp:
12/09/06 17:25:07
Author:
fumanchu
Message:

2.x backport of [1148] (test/modpy fixes and docs).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/modpy.py

    r1036 r1498  
    11"""Wrapper for mod_python, for use as a CherryPy HTTP server. 
    2      
    3     To autostart modpython, the "apache" executable or script must be 
    4     on your system path, or you must override ModPythonServer.APACHE_PATH. 
    5     On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- 
    6     create a symlink to them if needed. 
    7      
    8     You also need the 'modpython_gateway' module at: 
    9     http://projects.amor.org/misc/wiki/ModPythonGateway 
     2 
     3To autostart modpython, the "apache" executable or script must be 
     4on your system path, or you must override the global APACHE_PATH. 
     5On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- 
     6create a symlink to them if needed. 
     7 
     8You also need the 'modpython_gateway' module at: 
     9http://projects.amor.org/misc/wiki/ModPythonGateway 
     10 
     11 
     12KNOWN BUGS 
     13========== 
     14 
     151. Apache processes Range headers automatically; CherryPy's truncated 
     16    output is then truncated again by Apache. See test_core.testRanges. 
     17    This was worked around in http://www.cherrypy.org/changeset/1319. 
     182. Apache does not allow custom HTTP methods like CONNECT as per the spec. 
     19    See test_core.testHTTPMethods. 
     203. Max request header and body settings do not work with Apache. 
     214. Apache replaces status "reason phrases" automatically. For example, 
     22    CherryPy may set "304 Not modified" but Apache will write out 
     23    "304 Not Modified" (capital "M"). 
     245. Apache does not allow custom error codes as per the spec. 
     256. Apache (or perhaps modpython, or modpython_gateway) unquotes %xx in the 
     26    Request-URI too early. 
    1027""" 
    1128 
  • branches/cherrypy-2.x/cherrypy/test/test_core.py

    r1496 r1498  
    310310            yield "<h1>Choose your document</h1>\n" 
    311311            yield "<ul>\n" 
    312             for id, contents in self.documents
     312            for id, contents in self.documents.iteritems()
    313313                yield ("    <li><a href='/divorce/get?ID=%s'>%s</a>: %s</li>\n" 
    314314                       % (id, id, contents)) 
  • branches/cherrypy-2.x/cherrypy/test/test_etags.py

    r1492 r1498  
    4545        # Test If-None-Match (both valid and invalid) 
    4646        self.getPage("/resource", headers=[('If-None-Match', etag)]) 
    47         self.assertStatus("304 Not modified"
     47        self.assertStatus(304
    4848        self.getPage("/resource", method='POST', headers=[('If-None-Match', etag)]) 
    4949        self.assertStatus("412 Precondition Failed") 
    5050        self.getPage("/resource", headers=[('If-None-Match', "*")]) 
    51         self.assertStatus("304 Not modified"
     51        self.assertStatus(304
    5252        self.getPage("/resource", headers=[('If-None-Match', "a bogus tag")]) 
    5353        self.assertStatus("200 OK") 

Hosted by WebFaction

Log in as guest/cpguest to create tickets