]> projects.mako.cc - mw/commitdiff
Fix pagename/filename conversion problem
authorIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 08:16:09 +0000 (02:16 -0600)
committerIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 08:16:09 +0000 (02:16 -0600)
src/mw/api.py

index 8961f5d8a00d14cc408146f237c5c44570de92c4..c6958c28b52f0052de2536c144fcab600b91c12d 100644 (file)
@@ -58,11 +58,11 @@ class API(object):
 
 
 def pagename_to_filename(name):
-    name.replace(' ', '_')
-    name.replace('/', '!')
+    name = name.replace(' ', '_')
+    name = name.replace('/', '!')
     return name
 
 def filename_to_pagename(name):
-    name.replace('!', '/')
-    name.replace('_', ' ')
+    name = name.replace('!', '/')
+    name = name.replace('_', ' ')
     return name

Benjamin Mako Hill || Want to submit a patch?