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

« back to all changes in this revision

Viewing changes to src/dispatch/__init__.py

  • Committer: mattgiuca
  • Date: 2007-12-12 01:38:59 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:37
Added src/dispatch/request.py: The IVLE Request class.
dispatch module now transforms the Apache request object into an IVLE one, and
goes through it. (Note this temporarily means the content type is no longer
set, because the request object is missing functionality).

Added brief description of this object in notes/apps/dispatch.txt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import conf
33
33
import conf.apps
34
34
 
 
35
import request
 
36
 
35
37
root_dir = conf.root_dir
36
38
 
37
39
def handler(req):
40
42
 
41
43
    req: An Apache request object.
42
44
    """
 
45
    # Make the request object into an IVLE request which can be passed to apps
 
46
    req = request.Request(req)
 
47
 
43
48
    # TEMP: Dummy (test) handler
44
49
    req.content_type = "text/html"
45
50
    req.write("<html>\n")