~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to src/dispatch/request.py

  • Committer: mattgiuca
  • Date: 2007-12-14 04:53:50 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:61
dispatch/request: added read method.
server: Execute CGI with popen. But it doesn't work :(

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
            self.__writeheaders()
189
189
        self.apache_req.sendfile(filename)
190
190
 
 
191
    def read(self, len=None):
 
192
        """Reads at most len bytes directly from the client. (See mod_python
 
193
        Request.read)."""
 
194
        if len is None:
 
195
            self.apache_req.read()
 
196
        else:
 
197
            self.apache_req.read(len)
 
198
 
191
199
    def throw_error(self, httpcode):
192
200
        """Writes out an HTTP error of the specified code. Raises an exception
193
201
        which is caught by the dispatch or web server, so any code following