X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/blobdiff_plain/837e818319e2394caf2dcab5e40b18dcad3c6f0b..427878a7a692997d2be7dcfe8051673ec8ec7ba6:/routefs/examples/pyhesiodfs.py diff --git a/routefs/examples/pyhesiodfs.py b/routefs/examples/pyhesiodfs.py index 2a9bfb0..b3daa84 100755 --- a/routefs/examples/pyhesiodfs.py +++ b/routefs/examples/pyhesiodfs.py @@ -17,9 +17,9 @@ class PyHesiodFS(routefs.RouteFS): def make_map(self): m = Mapper() - m.connect('', controller='getList') - m.connect('README.txt', controller='getReadme') - m.connect(':action', controller='getLocker') + m.connect('/', controller='getList') + m.connect('/README.txt', controller='getReadme') + m.connect('/{action}', controller='getLocker') return m def getLocker(self, action, **kwargs):