It's not a _real_ pyhesiodfs if it's not accessible to everyone else.
[invirt/packages/python-routefs.git] / routefs / examples / pyhesiodfs.py
index 0a5aa3e..92986a2 100755 (executable)
@@ -7,6 +7,7 @@ from routes import Mapper
 class PyHesiodFS(routefs.RouteFS):
     def __init__(self, *args, **kwargs):
         super(PyHesiodFS, self).__init__(*args, **kwargs)
 class PyHesiodFS(routefs.RouteFS):
     def __init__(self, *args, **kwargs):
         super(PyHesiodFS, self).__init__(*args, **kwargs)
+        self.fuse_args.add("allow_other", True)
         
         self.cache = {}
     
         
         self.cache = {}
     
@@ -30,16 +31,16 @@ class PyHesiodFS(routefs.RouteFS):
             return
     
     def getList(self, **kwargs):
             return
     
     def getList(self, **kwargs):
-        return routefs.Directory(self.cache.keys() + ['README.txt'])
+        return self.cache.keys() + ['README.txt']
     
     def getReadme(self, **kwargs):
     
     def getReadme(self, **kwargs):
-        return routefs.File("""
+        return """
 This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys,
 just access /mit/name.
 
 If you're using the Finder, try pressing Cmd+Shift+G and then entering
 /mit/name
 This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys,
 just access /mit/name.
 
 If you're using the Finder, try pressing Cmd+Shift+G and then entering
 /mit/name
-""")
+"""
 
 if __name__ == '__main__':
     routefs.main(PyHesiodFS)
 
 if __name__ == '__main__':
     routefs.main(PyHesiodFS)