X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/blobdiff_plain/837e818319e2394caf2dcab5e40b18dcad3c6f0b..cb57abd6911f7e2c2820166d03ecdb10809e1a1f:/routefs/__init__.py diff --git a/routefs/__init__.py b/routefs/__init__.py index 294ec93..6a8d374 100644 --- a/routefs/__init__.py +++ b/routefs/__init__.py @@ -39,17 +39,11 @@ class RouteStat(fuse.Stat): class RouteFS(fuse.Fuse): """ RouteFS: Web 2.0 for filesystems - - Any method that will be used as the controller in a Routes mapping - (either by explicitly specifying the controller or by using the - ':controller' variable) must be added to RouteFS.controllers """ - controllers = [] def __init__(self, *args, **kwargs): super(RouteFS, self).__init__(*args, **kwargs) self.map = self.make_map() - self.map.create_regs(self.controllers) def make_map(self): """ @@ -58,7 +52,7 @@ class RouteFS(fuse.Fuse): """ m = routes.Mapper() - m.connect(':controller') + m.connect('{controller}') return m