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

« back to all changes in this revision

Viewing changes to scripts/diffservice

  • Committer: dcoles
  • Date: 2008-02-25 03:08:45 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:566
diff.css: Foreground colours for hilighting of changes
diffservice: Fixed multiple revision selection code

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        return None
71
71
        
72
72
# Use a CGIRequest object to make the CGI environment look like the normal
73
 
# IVLE handler environment. This lets us call FileService as if it were an
74
 
# IVLE app.
 
73
# IVLE handler environment.
75
74
 
76
75
req = cgirequest.CGIRequest()
77
 
#fileservice_lib.handle(req)
78
76
 
79
77
# CGI Headers
80
78
print("Content-Type: text/html\n")
81
79
print("\n")
82
80
 
83
 
print("<h1>Diff</h1>")
 
81
# Beginning of the page
 
82
print('<div id="ivle_padding">')
 
83
print('<h1>Diff</h1>')
84
84
 
85
85
# Work out the revisions from query
86
86
url = urlparse.urlparse(req.path)
95
95
        r2 = get_revision(query['r'][1])
96
96
        if r2 != None:
97
97
            rev2 = r2
98
 
    else:
99
 
        r1 = get_revision(query['r'][0])
100
 
        if r1 != None:
101
 
            rev1=r1
 
98
    r1 = get_revision(query['r'][0])
 
99
    if r1 != None:
 
100
        rev1=r1
102
101
 
103
102
# Attempt to get the diff for these revisons
104
103
try:
139
138
    print(e)
140
139
    print("</dd></dl>")
141
140
 
 
141
print('</div>')