diff MoinMoin/action/sisterpages.py @ 4183:fc20a076aad0

Accomodate for consolidation of Request/Response
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 21 Jun 2008 16:57:20 +0200
parents 85884c67228d
children 7add275cf4de
line wrap: on
line diff
--- a/MoinMoin/action/sisterpages.py	Thu Jun 19 18:23:02 2008 +0200
+++ b/MoinMoin/action/sisterpages.py	Sat Jun 21 16:57:20 2008 +0200
@@ -32,23 +32,23 @@
     if request.if_modified_since == timestamp:
         if request.if_none_match:
             if request.if_none_match == etag:
-                request.response.status_code = 304
+                request.status_code = 304
         else:
-            request.response.status_code = 304
+            request.status_code = 304
     elif request.if_none_match == etag:
         if request.if_modified_since:
             if request.if_modified_since == timestamp:
-                request.response.status_code = 304
+                request.status_code = 304
         else:
-            request.response.status_code = 304
+            request.status_code = 304
     else:
         # generate an Expires header, using 1d cache lifetime of sisterpages list
         expires = time.time() + 24*3600
 
-        request.response.mime_type = 'text/plain'
-        request.response.expires = expires
-        request.response.last_modified = timestamp
-        request.response.headers.add("Etag", etag)
+        request.mime_type = 'text/plain'
+        request.expires = expires
+        request.last_modified = timestamp
+        request.headers.add("Etag", etag)
 
         # send the generated XML document
         baseurl = request.getBaseURL()