Author: justi9
Date: 2008-02-21 16:36:56 -0500 (Thu, 21 Feb 2008)
New Revision: 1722
Modified:
mgmt/cumin/python/wooly/__init__.py
Log:
Move the path string accommodation to a better place
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2008-02-21 21:24:33 UTC (rev 1721)
+++ mgmt/cumin/python/wooly/__init__.py 2008-02-21 21:36:56 UTC (rev 1722)
@@ -458,6 +458,8 @@
self.pages[page.name] = page
def get_page(self, name):
+ #print "Looking for", name, "in", self.pages
+
return self.pages.get(name, self.default_page)
def set_default_page(self, page):
@@ -629,9 +631,6 @@
return separator.join(vars)
def unmarshal(self, string):
- if string.startswith("/"):
- string = string[1:]
-
elems = string.split("?")
self.unmarshal_page(elems[0])
@@ -642,6 +641,9 @@
pass
def unmarshal_page(self, string):
+ if string.startswith("/"):
+ string = string[1:]
+
self.set_page(self.app.get_page(string))
def unmarshal_url_vars(self, string, separator=";"):
Show replies by date