--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -33,9 +33,6 @@
from forgewiki import version
log = logging.getLogger(__name__)
-
-# Will not be needed after _dispatch is fixed in tg 2.1
-from pyforge.lib.dispatch import _dispatch
class W:
thread=w.Thread(
@@ -175,6 +172,7 @@
return dict(message=c.app.config.options['message'])
#Instantiate a Page object, and continue dispatch there
+ @expose()
def _lookup(self, pname, *remainder):
return PageController(pname), remainder