changeset 1328:f6801f7e4d59

Fixed standalone server that was broken by the prefix changes.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 19 Aug 2006 14:45:18 +0200
parents 506d04a9ceee
children 4a8c4849d162
files MoinMoin/action/SyncPages.py MoinMoin/server/standalone.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Sat Aug 19 01:02:56 2006 +0200
+++ b/MoinMoin/action/SyncPages.py	Sat Aug 19 14:45:18 2006 +0200
@@ -350,6 +350,5 @@
             handle_page(rp)
 
 
-
 def execute(pagename, request):
     ActionClass(pagename, request).render()
--- a/MoinMoin/server/standalone.py	Sat Aug 19 01:02:56 2006 +0200
+++ b/MoinMoin/server/standalone.py	Sat Aug 19 14:45:18 2006 +0200
@@ -293,8 +293,9 @@
         request is not available at this time.  Should be fixed by
         having url_prefix_static in a server config.
         """
-        if self.path.startswith('/moin_static160/'): # XXX
-            self.path = self.path[5:]
+        PREFIX = '/moin_static160/'
+        if self.path.startswith(PREFIX): # XXX
+            self.path = self.path[len(PREFIX)-1:]
             self.serve_static_file()
         elif self.path in ['/favicon.ico', '/robots.txt']:
             self.serve_static_file()