Revert "Eliminate make_map in favor of a simpler map property."
[invirt/packages/python-routefs.git] / routefs / examples / pyhesiodfs.py
index 0392bce..880dbb4 100755 (executable)
@@ -5,8 +5,10 @@ import routefs
 from routes import Mapper
 
 class PyHesiodFS(routefs.RouteFS):
+    controllers = ['getList', 'getReadme', 'getLocker']
     def __init__(self, *args, **kwargs):
         super(PyHesiodFS, self).__init__(*args, **kwargs)
+        self.fuse_args.add("allow_other", True)
         
         self.cache = {}
     
@@ -30,7 +32,7 @@ class PyHesiodFS(routefs.RouteFS):
             return
     
     def getList(self, **kwargs):
-        return routefs.Directory(self.cache.keys() + ['README.txt'])
+        return self.cache.keys() + ['README.txt']
     
     def getReadme(self, **kwargs):
         return """