~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 05:31:41 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:43
src/common/util.py: Added functions unmake_path and split_path.
src/dispatch/request: Now properly writes "app" and "path" attributes.
src/dispatch: Test code now displays app separately from path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
    # Start writing data
81
81
    req.write("<p>Hello, IVLE!</p>\n")
82
 
    req.write('<p><img src="' + make_path("media/images/mime/dir.png")
83
 
        + '" /> ')
84
 
    req.write(str(req.uri))
 
82
    req.write('<p>')
 
83
    if req.app == None:
 
84
        req.write('<b>No app specified</b>')
 
85
    else:
 
86
        req.write('<b>' + req.app + '</b> ')
 
87
        req.write('<img src="' + make_path("media/images/mime/dir.png")
 
88
            + '" /> ')
 
89
        req.write(str(req.path))
85
90
    req.write("</p>\n")
86
91
 
87
92
    print_apps_list(req)